diff --git a/hooks/pg_dir_utils.py b/hooks/pg_dir_utils.py index bf73a01..1c1d6fc 100644 --- a/hooks/pg_dir_utils.py +++ b/hooks/pg_dir_utils.py @@ -158,7 +158,9 @@ def restart_pg(): if service_start('libvirt-bin'): time.sleep(3) if not service_running('plumgrid'): - raise ValueError("plumgrid service couldn't be started") + if not service_start('plumgrid'): + raise ValueError("plumgrid service couldn't be started" + ) else: raise ValueError("libvirt-bin service couldn't be started") status_set('active', 'Unit is ready')