X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fopenvim.git;a=blobdiff_plain;f=ovim.py;h=fc8b12614255bc79760435eefd5fd243d619fbc9;hp=be7ef043c67d5f2a306d7c1bc84317453d111571;hb=5b6f74958d76765bd7f2b733bb84f7c99d71ff14;hpb=fbfb797533c1ba8eb015a387596949b0146a28ec diff --git a/ovim.py b/ovim.py index be7ef04..fc8b126 100644 --- a/ovim.py +++ b/ovim.py @@ -807,7 +807,7 @@ class ovim(): :return: """ - result, content = self.db.delete_row_by_key("ofcs", "uuid", of_id) + result, content = self.db.delete_row("ofcs", of_id) if result < 0: raise ovimException("Cannot delete ofc from database: {}".format(content), http_code=-result) elif result == 0: @@ -829,7 +829,7 @@ class ovim(): elif result < 0: raise ovimException("Openflow controller with uuid '{}' error".format(uuid), http_code=HTTP_Internal_Server_Error) - return content + return content[0] def get_of_controllers(self, columns=None, db_filter={}, limit=None): """