commit | 5d424c1b568a31dde05fc8101d7ee9a3891881c9 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <teo@opennetworking.org> | Wed Jun 20 17:53:45 2018 -0700 |
committer | Matteo Scandolo <teo@opennetworking.org> | Wed Jun 20 17:53:45 2018 -0700 |
tree | 36d7b05db8987524fb9bf7fb8ec36e25d42aa7da | |
parent | 0bf7c554cb9372cf3300a27c44fd82ecd01a0918 [diff] [blame] |
Fixing status code in host removal Change-Id: I92dda41154e807be0bcae313c66e49bc6a51b907
diff --git a/xos/synchronizer/steps/sync_vsg_hw_service_instance.py b/xos/synchronizer/steps/sync_vsg_hw_service_instance.py index 6f79ca2..5e1b378 100644 --- a/xos/synchronizer/steps/sync_vsg_hw_service_instance.py +++ b/xos/synchronizer/steps/sync_vsg_hw_service_instance.py
@@ -139,7 +139,7 @@ r = requests.delete(url, auth=HTTPBasicAuth(onos['user'], onos['pass'])) - if r.status_code != 200: + if r.status_code != 204: raise Exception("Failed to remove subscriber termination in ONOS: %s" % r.text) self.log.info("ONOS response", res=r.text)