Browse Source

Fix pep8 issues

Change-Id: Ic22f30bb19ed23bafbdd2fbbe514d9286b418cab
changes/79/727079/1
asarfaty 2 months ago
committed by Adit Sarfaty
parent
commit
61fe375766
2 changed files with 5 additions and 5 deletions
  1. +2
    -2
      vmware_nsx/shell/admin/plugins/nsxv/resources/metadata.py
  2. +3
    -3
      vmware_nsx/shell/nsxadmin.py

+ 2
- 2
vmware_nsx/shell/admin/plugins/nsxv/resources/metadata.py 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))]))



+ 3
- 3
vmware_nsx/shell/nsxadmin.py 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)


Loading…
Cancel
Save