Added LICENSE file to root folder
[osm/openvim.git] / osm_openvim / vim_db.py
index a2f1f1f..67c7e1a 100644 (file)
@@ -79,7 +79,7 @@ class vim_db():
         Following calls can skip this parameters
         """
         try:
-            with self.lock, self.con:
+            with self.lock:
                 if host:
                     self.host = host
                     self.con = None
@@ -1197,7 +1197,7 @@ class vim_db():
                         numa_id = str(k['id'])
                         numa_dict = {}
                         # get memory
-                        cmd = "SELECT consumed FROM resources_mem WHERE instance_id = '{}' AND numa_id = '{}'".foramt(
+                        cmd = "SELECT consumed FROM resources_mem WHERE instance_id = '{}' AND numa_id = '{}'".format(
                             instance_id, numa_id)
                         self.logger.debug(cmd)
                         self.cur.execute(cmd)