Lint: E231 missing whitespace after ','
This commit is contained in:
parent
3cb92fed75
commit
905b81c47d
|
@ -160,7 +160,7 @@ class RequestParser(object):
|
|||
action=reqarg.get('action', None),
|
||||
choices=reqarg.get('choices', ()),
|
||||
help=reqarg.get('helptext', None),
|
||||
location=['args','form']
|
||||
location=['args', 'form']
|
||||
)
|
||||
reqargs = parser.parse_args()
|
||||
kwargs['reqargs'] = reqargs
|
||||
|
@ -3259,7 +3259,7 @@ class API_Storage_Ceph_Pool_Element(Resource):
|
|||
type: object
|
||||
id: Message
|
||||
"""
|
||||
return api_helper,ceph_pool_list(
|
||||
return api_helper, ceph_pool_list(
|
||||
pool,
|
||||
is_fuzzy=False
|
||||
)
|
||||
|
|
|
@ -1311,9 +1311,9 @@ def create_vm(self, vm_name, vm_profile, define_vm=True, start_vm=True, script_r
|
|||
)
|
||||
else:
|
||||
mac_prefix = '52:54:00'
|
||||
random_octet_A = '{:x}'.format(random.randint(16,238))
|
||||
random_octet_B = '{:x}'.format(random.randint(16,238))
|
||||
random_octet_C = '{:x}'.format(random.randint(16,238))
|
||||
random_octet_A = '{:x}'.format(random.randint(16, 238))
|
||||
random_octet_B = '{:x}'.format(random.randint(16, 238))
|
||||
random_octet_C = '{:x}'.format(random.randint(16, 238))
|
||||
|
||||
macgen_template = '{prefix}:{octetA}:{octetB}:{octetC}'
|
||||
eth_macaddr = macgen_template.format(
|
||||
|
|
|
@ -583,7 +583,7 @@ def cli_vm():
|
|||
)
|
||||
@click.option(
|
||||
'-s', '--selector', 'node_selector', default='mem', show_default=True,
|
||||
type=click.Choice(['mem','load','vcpus','vms']),
|
||||
type=click.Choice(['mem', 'load', 'vcpus', 'vms']),
|
||||
help='Method to determine optimal target node during autoselect; saved with VM.'
|
||||
)
|
||||
@click.option(
|
||||
|
@ -592,7 +592,7 @@ def cli_vm():
|
|||
)
|
||||
@click.option(
|
||||
'-m', '--method', 'migration_method', default='none', show_default=True,
|
||||
type=click.Choice(['none','live','shutdown']),
|
||||
type=click.Choice(['none', 'live', 'shutdown']),
|
||||
help='The preferred migration method of the VM between nodes; saved with VM.'
|
||||
)
|
||||
@click.argument(
|
||||
|
@ -628,7 +628,7 @@ def vm_define(vmconfig, target_node, node_limit, node_selector, node_autostart,
|
|||
)
|
||||
@click.option(
|
||||
'-s', '--selector', 'node_selector', default=None, show_default=False,
|
||||
type=click.Choice(['mem','load','vcpus','vms']),
|
||||
type=click.Choice(['mem', 'load', 'vcpus', 'vms']),
|
||||
help='Method to determine optimal target node during autoselect.'
|
||||
)
|
||||
@click.option(
|
||||
|
@ -637,7 +637,7 @@ def vm_define(vmconfig, target_node, node_limit, node_selector, node_autostart,
|
|||
)
|
||||
@click.option(
|
||||
'-m', '--method', 'migration_method', default='none', show_default=True,
|
||||
type=click.Choice(['none','live','shutdown']),
|
||||
type=click.Choice(['none', 'live', 'shutdown']),
|
||||
help='The preferred migration method of the VM between nodes; saved with VM.'
|
||||
)
|
||||
@click.option(
|
||||
|
@ -2316,7 +2316,7 @@ def provisioner_template_system_list(limit):
|
|||
)
|
||||
@click.option(
|
||||
'--migration-method', 'migration_method',
|
||||
type=click.Choice(['none','live','shutdown'], case_sensitive=False),
|
||||
type=click.Choice(['none', 'live', 'shutdown'], case_sensitive=False),
|
||||
default=None, # Use cluster default
|
||||
help='The preferred migration method of the VM between nodes'
|
||||
)
|
||||
|
@ -2392,7 +2392,7 @@ def provisioner_template_system_add(name, vcpus, vram, serial, vnc, vnc_bind, no
|
|||
)
|
||||
@click.option(
|
||||
'--migration-method', 'migration_method',
|
||||
type=click.Choice(['none','live','shutdown'], case_sensitive=False),
|
||||
type=click.Choice(['none', 'live', 'shutdown'], case_sensitive=False),
|
||||
default=None, # Use cluster default
|
||||
help='The preferred migration method of the VM between nodes'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue