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
This commit is contained in:
Doug Shelley 2015-09-22 18:11:20 +00:00
parent 0b9ad56194
commit 5ced6b778a
1 changed files with 1 additions and 1 deletions

View File

@ -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.')