Updated restart_pg function

This commit is contained in:
Junaid Ali 2016-04-27 03:28:38 -07:00
parent 8dc2399995
commit 62c922078e
1 changed files with 3 additions and 1 deletions

View File

@ -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')