From a2ab1830859faccb88a89c6f296b6c0518453b1a Mon Sep 17 00:00:00 2001 From: nitin kumar Date: Mon, 20 Jun 2016 14:53:36 +0530 Subject: [PATCH] in case of failure module was breaking --- library/junos_jsnapy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/junos_jsnapy b/library/junos_jsnapy index 9297a2f..4b93cd9 100644 --- a/library/junos_jsnapy +++ b/library/junos_jsnapy @@ -224,7 +224,7 @@ def main(): if data['final_result']=='Failed': msg = 'Test Failed: Passed {0}, Failed {1}'.format( - data.no_passed, data.no_failed + data['total_passed'], data['total_failed'] ) logging.error(msg) dev.close()