Change tag based on job status
authorvelandy <rajesh.velandy@riftio.com>
Tue, 21 Mar 2017 20:26:42 +0000 (20:26 +0000)
committervelandy <rajesh.velandy@riftio.com>
Tue, 21 Mar 2017 20:26:50 +0000 (20:26 +0000)
Signed-off-by: velandy <rajesh.velandy@riftio.com>
common/python/rift/mano/config_agent/operdata.py

index 729a1f1..fbf3c43 100644 (file)
@@ -432,7 +432,10 @@ class ConfigAgentJobMonitor(object):
                            format(process, rc, err))
 
             if len(err):
-                errs += "<error>{}</error>".format(err)
+                if rc == 0:
+                    errs += "<success>{}</success>".format(err)
+                else:
+                    errs += "<error>{}</error>".format(err)
             result |= rc
 
         if result == 0: