Don't overwrite paused status in main()

This commit is contained in:
Corey Bryant 2015-10-12 16:42:41 +00:00
parent 3f1aca9849
commit 1228afe034
1 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,7 @@ from lib.swift_utils import (
is_paused,
pause_aware_restart_on_change,
assess_status,
is_paused,
)
import charmhelpers.contrib.openstack.utils as openstack
@ -526,7 +527,9 @@ def main():
hooks.execute(sys.argv)
except UnregisteredHookError as e:
log('Unknown hook {} - skipping.'.format(e), level=DEBUG)
assess_status(CONFIGS)
# Don't overwrite paused status
if not is_paused():
assess_status(CONFIGS)
if __name__ == '__main__':