Fix delete API response code
The API response code for deleting logical switch and security group should be 200 instead of 204. Fix the response code to remove the false alarm warning. Change-Id: Ib2479f4ac6cc0013b748dd2f2d18a3b37822c0b6
This commit is contained in:
parent
fdd4f41671
commit
dd5e8987f8
@ -186,7 +186,7 @@ class VSMClient(object):
|
||||
ls['objectId'])
|
||||
endpoint = '/vdn/virtualwires/%s' % ls['objectId']
|
||||
response = self.delete(endpoint=endpoint)
|
||||
if response.status_code != 204:
|
||||
if response.status_code != 200:
|
||||
print "ERROR: reponse status code %s" % response.status_code
|
||||
|
||||
def query_all_firewall_sections(self):
|
||||
@ -246,7 +246,7 @@ class VSMClient(object):
|
||||
endpoint = '/services/securitygroup/%s' % sg['objectId']
|
||||
params = {'force': self.force}
|
||||
response = self.delete(endpoint=endpoint, params=params)
|
||||
if response.status_code != 204:
|
||||
if response.status_code != 200:
|
||||
print "ERROR: reponse status code %s" % response.status_code
|
||||
|
||||
def query_all_spoofguard_policies(self):
|
||||
|
Loading…
Reference in New Issue
Block a user