fix issue 2 at vim_db 03/6503/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 18 Sep 2018 12:13:31 +0000 (14:13 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 18 Sep 2018 12:13:31 +0000 (14:13 +0200)
Change-Id: I1c87b3c1b494b672d6acfa8483b4a4ccd3c6b72e
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_openvim/vim_db.py

index 5359c01..67c7e1a 100644 (file)
@@ -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)