summaryrefslogtreecommitdiff
diff options
-rwxr-xr-xhooks/hooks.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/hooks/hooks.py b/hooks/hooks.py
index a458e99..ec4adfb 100755
--- a/hooks/hooks.py
+++ b/hooks/hooks.py
@@ -571,7 +571,11 @@ def enable_replset(replicaset_name=None):
juju_log('enable_replset: Enabling replicaset configuration:')
current_config = get_current_mongo_config()
- config_data = config()
+ config_data = dict(config())
+
+ if is_bionic_or_greater():
+ if config_data['bind_ip'] == "all":
+ config_data['bind_ip'] = '0.0.0.0'
if 'replSet' in current_config and \
current_config['replSet'] == config_data['replicaset']: