Fix pep8 issues
Change-Id: Ic22f30bb19ed23bafbdd2fbbe514d9286b418cab
This commit is contained in:
parent
e5640f074c
commit
22d027b694
|
@ -267,7 +267,7 @@ def nsx_redo_metadata_cfg_for_edge(context, plugin, edge_id):
|
||||||
if (binding['router_id'].startswith(
|
if (binding['router_id'].startswith(
|
||||||
vcns_constants.BACKUP_ROUTER_PREFIX) or
|
vcns_constants.BACKUP_ROUTER_PREFIX) or
|
||||||
binding['router_id'].startswith(
|
binding['router_id'].startswith(
|
||||||
vcns_constants.PLR_EDGE_PREFIX)or
|
vcns_constants.PLR_EDGE_PREFIX) or
|
||||||
binding['router_id'].startswith(
|
binding['router_id'].startswith(
|
||||||
lb_common.RESOURCE_ID_PFX)):
|
lb_common.RESOURCE_ID_PFX)):
|
||||||
LOG.error('Edge %s is not a metadata delivery appliance', edge_id)
|
LOG.error('Edge %s is not a metadata delivery appliance', edge_id)
|
||||||
|
@ -329,7 +329,7 @@ def nsx_redo_metadata_cfg_for_az(context, plugin, az_name, check_az=True):
|
||||||
not binding['router_id'].startswith(
|
not binding['router_id'].startswith(
|
||||||
vcns_constants.BACKUP_ROUTER_PREFIX) and
|
vcns_constants.BACKUP_ROUTER_PREFIX) and
|
||||||
not binding['router_id'].startswith(
|
not binding['router_id'].startswith(
|
||||||
vcns_constants.PLR_EDGE_PREFIX)and
|
vcns_constants.PLR_EDGE_PREFIX) and
|
||||||
not binding['router_id'].startswith(
|
not binding['router_id'].startswith(
|
||||||
lb_common.RESOURCE_ID_PFX))]))
|
lb_common.RESOURCE_ID_PFX))]))
|
||||||
|
|
||||||
|
|
|
@ -73,15 +73,15 @@ def _validate_resource_choice(resource, nsx_plugin):
|
||||||
LOG.error('Supported list of NSX-V resources: %s',
|
LOG.error('Supported list of NSX-V resources: %s',
|
||||||
resources.nsxv_resources_names)
|
resources.nsxv_resources_names)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif nsx_plugin == 'nsxv3'and resource not in resources.nsxv3_resources:
|
elif nsx_plugin == 'nsxv3' and resource not in resources.nsxv3_resources:
|
||||||
LOG.error('Supported list of NSX-V3 resources: %s',
|
LOG.error('Supported list of NSX-V3 resources: %s',
|
||||||
resources.nsxv3_resources_names)
|
resources.nsxv3_resources_names)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif nsx_plugin == 'nsxtvd'and resource not in resources.nsxtvd_resources:
|
elif nsx_plugin == 'nsxtvd' and resource not in resources.nsxtvd_resources:
|
||||||
LOG.error('Supported list of NSX-TVD resources: %s',
|
LOG.error('Supported list of NSX-TVD resources: %s',
|
||||||
resources.nsxtvd_resources_names)
|
resources.nsxtvd_resources_names)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif nsx_plugin == 'nsxp'and resource not in resources.nsxp_resources:
|
elif nsx_plugin == 'nsxp' and resource not in resources.nsxp_resources:
|
||||||
LOG.error('Supported list of NSX-P resources: %s',
|
LOG.error('Supported list of NSX-P resources: %s',
|
||||||
resources.nsxp_resources_names)
|
resources.nsxp_resources_names)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue