diff options
author | Felipe Reyes <felipe.reyes@canonical.com> | 2018-05-17 22:30:54 +0000 |
---|---|---|
committer | Felipe Reyes <felipe.reyes@canonical.com> | 2018-05-17 22:30:54 +0000 |
commit | e9358130e9d4060774c7d266a195a388aee92bb0 (patch) | |
tree | 395bf5117ba019d5ea18ff8622d7caffaed9cdf9 | |
parent | facd52bc54675fb0356df7359db2247fb210f00a (diff) |
Fix while until workload is 'active'
-rwxr-xr-x | hooks/hooks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/hooks.py b/hooks/hooks.py index 40fd996..b13354a 100755 --- a/hooks/hooks.py +++ b/hooks/hooks.py @@ -1265,7 +1265,7 @@ def replica_set_relation_changed(): juju_log('Adding new secondary... %s' % unit_remote, level=DEBUG) join_replset(unit, unit_remote) - while update_status <> 'active': + while update_status() <> 'active': time.sleep(5) juju_log('replica_set_relation_changed-finish') |