Fix pep8 issues

Change-Id: Ic22f30bb19ed23bafbdd2fbbe514d9286b418cab
This commit is contained in:
asarfaty 2020-05-12 08:09:36 +02:00 committed by Adit Sarfaty
parent e5640f074c
commit 22d027b694
2 changed files with 5 additions and 5 deletions

View File

@ -267,7 +267,7 @@ def nsx_redo_metadata_cfg_for_edge(context, plugin, edge_id):
if (binding['router_id'].startswith(
vcns_constants.BACKUP_ROUTER_PREFIX) or
binding['router_id'].startswith(
vcns_constants.PLR_EDGE_PREFIX)or
vcns_constants.PLR_EDGE_PREFIX) or
binding['router_id'].startswith(
lb_common.RESOURCE_ID_PFX)):
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(
vcns_constants.BACKUP_ROUTER_PREFIX) and
not binding['router_id'].startswith(
vcns_constants.PLR_EDGE_PREFIX)and
vcns_constants.PLR_EDGE_PREFIX) and
not binding['router_id'].startswith(
lb_common.RESOURCE_ID_PFX))]))

View File

@ -73,15 +73,15 @@ def _validate_resource_choice(resource, nsx_plugin):
LOG.error('Supported list of NSX-V resources: %s',
resources.nsxv_resources_names)
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',
resources.nsxv3_resources_names)
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',
resources.nsxtvd_resources_names)
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',
resources.nsxp_resources_names)
sys.exit(1)