Merge "Fix update_entry in SecurityPolicyApi" into stable/stein

This commit is contained in:
Zuul
2019-04-15 21:26:51 +00:00
committed by Gerrit Code Review

View File

@@ -1745,9 +1745,7 @@ class NsxPolicyApi(object):
path = resource_def.get_resource_path() path = resource_def.get_resource_path()
if resource_def.resource_use_cache(): if resource_def.resource_use_cache():
self.cache.remove(path) self.cache.remove(path)
body = resource_def.body body = resource_def.get_obj_dict()
if not body:
body = resource_def.get_obj_dict()
self.client.patch(path, body) self.client.patch(path, body)
def create_with_parent(self, parent_def, resource_def): def create_with_parent(self, parent_def, resource_def):