Browse Source

Updated restart_pg function

Junaid Ali 3 years ago
parent
commit
721c1d27ba
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      hooks/pg_gw_utils.py

+ 3
- 1
hooks/pg_gw_utils.py View File

@@ -158,7 +158,9 @@ def restart_pg():
158 158
             if service_start('libvirt-bin'):
159 159
                 time.sleep(3)
160 160
                 if not service_running('plumgrid'):
161
-                    raise ValueError("plumgrid service couldn't be started")
161
+                    if not service_start('plumgrid'):
162
+                        raise ValueError("plumgrid service couldn't be started"
163
+                                         )
162 164
             else:
163 165
                 raise ValueError("libvirt-bin service couldn't be started")
164 166
     status_set('active', 'Unit is ready')

Loading…
Cancel
Save