diff --git a/vmware_nsx/plugins/nsx_v/vshield/vcns.py b/vmware_nsx/plugins/nsx_v/vshield/vcns.py index 5842985a23..5bb8f6baa7 100644 --- a/vmware_nsx/plugins/nsx_v/vshield/vcns.py +++ b/vmware_nsx/plugins/nsx_v/vshield/vcns.py @@ -127,8 +127,10 @@ class Vcns(object): uri += "?async=true" return self.do_request(HTTP_POST, uri, request, decode=False) - def update_edge(self, edge_id, request): - uri = "%s/%s?async=true" % (URI_PREFIX, edge_id) + def update_edge(self, edge_id, request, async=False): + uri = "%s/%s" % (URI_PREFIX, edge_id) + if async: + uri += "?async=true" return self.do_request(HTTP_PUT, uri, request, decode=False) def get_edge_id(self, job_id):