X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fnbi.py;h=cb2404558857b0fc24fe8944a149fc761fcdb5ce;hp=fefb3e963239385321c75c31d90a450dcf90e747;hb=b62b7acd1c12e971b6e13d4905d478df8fd3c69f;hpb=956924429d324ed432b2f9bf6ec0ceff437486ad diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index fefb3e9..cb24045 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -716,7 +716,7 @@ class Server(object): outdata = self.engine.del_item_list(session, engine_item, kwargs) cherrypy.response.status = HTTPStatus.OK.value else: # len(args) > 1 - if item == "ns_instances_content": + if item == "ns_instances_content" and not force: opp_id = self.engine.ns_operation(session, _id, "terminate", {"autoremove": True}, None) outdata = {"_id": opp_id} cherrypy.response.status = HTTPStatus.ACCEPTED.value