Don't overwrite paused status in main()

This commit is contained in:
Corey Bryant 2015-10-12 16:37:08 +00:00
parent 3d557d447b
commit 35b2ab8948
1 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,7 @@ from lib.swift_storage_utils import (
assert_charm_supports_ipv6,
setup_rsync,
REQUIRED_INTERFACES,
is_paused,
)
from lib.misc_utils import pause_aware_restart_on_change
@ -166,7 +167,9 @@ def main():
hooks.execute(sys.argv)
except UnregisteredHookError as e:
log('Unknown hook {} - skipping.'.format(e))
set_os_workload_status(CONFIGS, REQUIRED_INTERFACES)
# Don't overwrite paused status
if not is_paused():
set_os_workload_status(CONFIGS, REQUIRED_INTERFACES)
if __name__ == '__main__':