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),
|
action=reqarg.get('action', None),
|
||||||
choices=reqarg.get('choices', ()),
|
choices=reqarg.get('choices', ()),
|
||||||
help=reqarg.get('helptext', None),
|
help=reqarg.get('helptext', None),
|
||||||
location=['args','form']
|
location=['args', 'form']
|
||||||
)
|
)
|
||||||
reqargs = parser.parse_args()
|
reqargs = parser.parse_args()
|
||||||
kwargs['reqargs'] = reqargs
|
kwargs['reqargs'] = reqargs
|
||||||
|
@ -3259,7 +3259,7 @@ class API_Storage_Ceph_Pool_Element(Resource):
|
||||||
type: object
|
type: object
|
||||||
id: Message
|
id: Message
|
||||||
"""
|
"""
|
||||||
return api_helper,ceph_pool_list(
|
return api_helper, ceph_pool_list(
|
||||||
pool,
|
pool,
|
||||||
is_fuzzy=False
|
is_fuzzy=False
|
||||||
)
|
)
|
||||||
|
|
|
@ -1311,9 +1311,9 @@ def create_vm(self, vm_name, vm_profile, define_vm=True, start_vm=True, script_r
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
mac_prefix = '52:54:00'
|
mac_prefix = '52:54:00'
|
||||||
random_octet_A = '{: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_B = '{:x}'.format(random.randint(16, 238))
|
||||||
random_octet_C = '{:x}'.format(random.randint(16,238))
|
random_octet_C = '{:x}'.format(random.randint(16, 238))
|
||||||
|
|
||||||
macgen_template = '{prefix}:{octetA}:{octetB}:{octetC}'
|
macgen_template = '{prefix}:{octetA}:{octetB}:{octetC}'
|
||||||
eth_macaddr = macgen_template.format(
|
eth_macaddr = macgen_template.format(
|
||||||
|
|
|
@ -583,7 +583,7 @@ def cli_vm():
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
'-s', '--selector', 'node_selector', default='mem', show_default=True,
|
'-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.'
|
help='Method to determine optimal target node during autoselect; saved with VM.'
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
|
@ -592,7 +592,7 @@ def cli_vm():
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
'-m', '--method', 'migration_method', default='none', show_default=True,
|
'-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.'
|
help='The preferred migration method of the VM between nodes; saved with VM.'
|
||||||
)
|
)
|
||||||
@click.argument(
|
@click.argument(
|
||||||
|
@ -628,7 +628,7 @@ def vm_define(vmconfig, target_node, node_limit, node_selector, node_autostart,
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
'-s', '--selector', 'node_selector', default=None, show_default=False,
|
'-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.'
|
help='Method to determine optimal target node during autoselect.'
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
|
@ -637,7 +637,7 @@ def vm_define(vmconfig, target_node, node_limit, node_selector, node_autostart,
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
'-m', '--method', 'migration_method', default='none', show_default=True,
|
'-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.'
|
help='The preferred migration method of the VM between nodes; saved with VM.'
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
|
@ -2316,7 +2316,7 @@ def provisioner_template_system_list(limit):
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
'--migration-method', 'migration_method',
|
'--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
|
default=None, # Use cluster default
|
||||||
help='The preferred migration method of the VM between nodes'
|
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(
|
@click.option(
|
||||||
'--migration-method', 'migration_method',
|
'--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
|
default=None, # Use cluster default
|
||||||
help='The preferred migration method of the VM between nodes'
|
help='The preferred migration method of the VM between nodes'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue