[Kimchi-devel] [PATCH] bug fix: fix python syntax error

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Fri Feb 14 06:10:05 UTC 2014


From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>

the dict the key and value should be separated by colon

Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
---
 src/kimchi/mockmodel.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/kimchi/mockmodel.py b/src/kimchi/mockmodel.py
index bde6a5c..988683f 100644
--- a/src/kimchi/mockmodel.py
+++ b/src/kimchi/mockmodel.py
@@ -264,7 +264,7 @@ class MockModel(object):
         try:
             file_target = glob.glob(file_pattern)[0]
         except IndexError:
-            raise NotFoundError("KCHDR0001E", {'name', name})
+            raise NotFoundError("KCHDR0001E", {'name': name})
 
         ctime = os.stat(file_target).st_ctime
         ctime = time.strftime("%Y-%m-%d-%H:%M:%S", time.localtime(ctime))
@@ -282,7 +282,7 @@ class MockModel(object):
         try:
             file_target = glob.glob(file_pattern)[0]
         except IndexError:
-            raise NotFoundError("KCHDR0001E", {'name', name})
+            raise NotFoundError("KCHDR0001E", {'name': name})
 
         os.remove(file_target)
 
-- 
1.8.4.2




More information about the Kimchi-devel mailing list