Merge "Add force=true to NSgroups DELETE call"

(cherry picked from commit 2c02718154)

Closes-Bug: #1547170

Change-Id: I62be6578c6a70b3b7ae657bd0fa2026fda9ebd56
This commit is contained in:
Jenkins 2016-02-18 14:52:50 +00:00 committed by Akash Gangil
parent f3c6765058
commit fc3430711c
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ class NSXClient(object):
ns_groups = self.get_ns_groups()
print("Number of OS NSGroups to be deleted: %s" % len(ns_groups))
for nsg in ns_groups:
endpoint = "/ns-groups/%s" % nsg['id']
endpoint = "/ns-groups/%s?force=true" % nsg['id']
response = self.delete(endpoint=endpoint)
if response.status_code == requests.codes.ok:
print("Successfully deleted NSGroup: %s" % nsg['display_name'])