[PATCH] bug fix: fix python syntax error

From: ShaoHe Feng <shaohef@linux.vnet.ibm.com> the dict the key and value should be separated by colon Signed-off-by: ShaoHe Feng <shaohef@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
participants (2)
-
Aline Manera
-
shaohef@linux.vnet.ibm.com