From e6036ae5f543275ee575c533fdcdf25132340f43 Mon Sep 17 00:00:00 2001 From: Divya Madala Date: Thu, 12 Sep 2024 11:16:43 -0700 Subject: [PATCH] Update assert Signed-off-by: Divya Madala --- src/validation_workflow/rpm/validation_rpm.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/validation_workflow/rpm/validation_rpm.py b/src/validation_workflow/rpm/validation_rpm.py index a37e7c0e3f..173e144cd7 100644 --- a/src/validation_workflow/rpm/validation_rpm.py +++ b/src/validation_workflow/rpm/validation_rpm.py @@ -39,7 +39,12 @@ def start_cluster(self) -> bool: try: for project in self.args.projects: execute(f'sudo systemctl start {project}', ".") - (status, _, _) = execute(f'sudo systemctl status {project}', ".") + (stdout, stderr, status) = execute(f'sudo systemctl status {project}', ".") + if(status == 0): + logging.info(stdout) + else: + logging.info(stderr) + except: raise Exception('Failed to Start Cluster') return True