diff --git a/hooks/pg_gw_utils.py b/hooks/pg_gw_utils.py index 57a9632..8cfc815 100644 --- a/hooks/pg_gw_utils.py +++ b/hooks/pg_gw_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')