]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/MgrMonitor: print pending.always_on_modules before updating it
authorKefu Chai <kchai@redhat.com>
Tue, 27 Aug 2019 04:08:45 +0000 (12:08 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 27 Aug 2019 04:14:02 +0000 (12:14 +0800)
commit75c7ee239b79aeab2c1f42d4373a4d36486ffc02
treee760653207add720c7a3587eea4659d59774eac8
parentbad4ccc7bf443860801b54a77aa762e0ffb4bc57
mgr/MgrMonitor: print pending.always_on_modules before updating it

* early return to reduce the indent level for improve the readability
* print out the full `pending.always_on_modules` instead of the modules
  for current release, as we change it as long as the `map` does not
  match the one shipped in monitor, even if the discrepancy has no
  effects on current release.
* print `pending.always_on_modules` before updating it, to fix the
  logging message

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/MgrMonitor.cc