summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Shelley <doug@parelastic.com>2015-09-22 18:11:20 +0000
committerDoug Shelley <doug@parelastic.com>2015-09-22 18:11:20 +0000
commit5ced6b778a1dbacec2c23eec843fea7187a012dd (patch)
tree4abb248d5daf94603b8df027642222bb747fbc06
parent0b9ad56194d4218a083fcff0b26628d83b6a8c9e (diff)
downloadtrove-5ced6b778a1dbacec2c23eec843fea7187a012dd.tar.gz
Fix Mongo report_root call to have correct args
report_root is being called in the case of a new instance being created from backup when root is enabled on the originating instance. A change [1] was made that added the context object to the report_root argument list and the Mongo guest wasn't passing it. [1] https://review.openstack.org/#/c/124355/ Change-Id: Id61337ae85fb980752d606bddb2f1e574a345cba Closes-bug: 1498568
-rw-r--r--trove/guestagent/datastore/experimental/mongodb/manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/trove/guestagent/datastore/experimental/mongodb/manager.py b/trove/guestagent/datastore/experimental/mongodb/manager.py
index 264b6a4b..d74fbd59 100644
--- a/trove/guestagent/datastore/experimental/mongodb/manager.py
+++ b/trove/guestagent/datastore/experimental/mongodb/manager.py
@@ -99,7 +99,7 @@ class Manager(periodic_task.PeriodicTasks):
if not cluster_config and backup_info:
self._perform_restore(backup_info, context, mount_point, self.app)
if service.MongoDBAdmin().is_root_enabled():
- self.app.status.report_root('root')
+ self.app.status.report_root(context, 'root')
if not cluster_config and root_password:
LOG.debug('Root password provided. Enabling root.')