Merge "NSX|V: fix missing spoofguard ID validation"

This commit is contained in:
Jenkins 2017-05-12 21:51:38 +00:00 committed by Gerrit Code Review
commit a46ba2ec76

View File

@ -118,7 +118,7 @@ def nsx_clean_spoofguard_policy(resource, event, trigger, **kwargs):
LOG.error("Unable to retrieve policy %(p)s: %(e)s",
{'p': policy_id, 'e': str(e)})
else:
if not c['spoofguardList']:
if not c.get('spoofguardList'):
LOG.error("Policy %s does not exist", policy_id)
return
confirm = admin_utils.query_yes_no(