Merge "Use realization ID if not found by search api"

This commit is contained in:
Zuul 2019-10-06 05:39:00 +00:00 committed by Gerrit Code Review
commit 442a2d4309
1 changed files with 6 additions and 0 deletions

View File

@ -307,6 +307,12 @@ class NsxPolicyResourceBase(object):
resource_type=resource_def.resource_type(),
resource_id=resource_def.get_id(),
error=error_msg)
if (info and info['state'] == constants.STATE_REALIZED and
info.get('realization_specific_identifier')):
LOG.warning("Realization ID for %s was not found via "
"search api although it was realized",
policy_resource_path)
return info['realization_specific_identifier']
eventlet.sleep(sleep)
test_num += 1