From 1dbd144445c3e6d058a4e860389a7ec40ec8d8fb Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Tue, 13 Oct 2015 08:52:10 +0000 Subject: [PATCH] Revert "Don't overwrite paused status in main()" --- hooks/swift_storage_hooks.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hooks/swift_storage_hooks.py b/hooks/swift_storage_hooks.py index ae863b9..3ebd68f 100755 --- a/hooks/swift_storage_hooks.py +++ b/hooks/swift_storage_hooks.py @@ -17,7 +17,6 @@ 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 @@ -167,9 +166,7 @@ def main(): hooks.execute(sys.argv) except UnregisteredHookError as e: log('Unknown hook {} - skipping.'.format(e)) - # Don't overwrite paused status - if not is_paused(): - set_os_workload_status(CONFIGS, REQUIRED_INTERFACES) + set_os_workload_status(CONFIGS, REQUIRED_INTERFACES) if __name__ == '__main__':