Create Flavors without Optional Arguments
fixes Bug #1056910 Allows the user to create a flavor without optional arguments. The variable, ephemeral, is not currently set to a default value. This none type value causes exceptions in subsequent code, which occurs when specifying only mandatory parameters. Change-Id: Ic440136b000dc296bef3bb6f8b0856ff5e7e4e79
This commit is contained in:
		@@ -832,7 +832,7 @@ class InstanceTypeCommands(object):
 | 
			
		||||
            help='rxtx_factor')
 | 
			
		||||
    @args('--is_public', dest="is_public", metavar='<is_public>',
 | 
			
		||||
            help='Make flavor accessible to the public')
 | 
			
		||||
    def create(self, name, memory, vcpus, root_gb, ephemeral_gb, flavorid=None,
 | 
			
		||||
    def create(self, name, memory, vcpus, root_gb, ephemeral_gb=0, flavorid=None,
 | 
			
		||||
               swap=0, rxtx_factor=1, is_public=True):
 | 
			
		||||
        """Creates instance types / flavors"""
 | 
			
		||||
        try:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user