From 4d3865808d460fd4c11b0807cf5e4ea59cfffba1 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Tue, 3 Sep 2013 16:44:17 +0530 Subject: [PATCH] marvin_refactor: skip jobStatus and jobId when determining mirror objects When comparing json response against the response object disregard the jobstatus and jobid returned as part of object response. These are some quirks in the API response added previously that we are unable to remove. Signed-off-by: Prasanna Santhanam --- tools/marvin/marvin/jsonHelper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/marvin/marvin/jsonHelper.py b/tools/marvin/marvin/jsonHelper.py index 5a193e84c2e..605e06f7348 100644 --- a/tools/marvin/marvin/jsonHelper.py +++ b/tools/marvin/marvin/jsonHelper.py @@ -125,6 +125,8 @@ def finalizeResultObj(result, responseName, responsecls): mirrorObj = False for k, v in value.__dict__.iteritems(): + if k.startswith('job'): + continue if k in responsecls.__dict__: mirrorObj = True else: