]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: clean up client.crash.* container_image settings after upgrade 34068/head
authorSage Weil <sage@redhat.com>
Thu, 19 Mar 2020 14:29:20 +0000 (09:29 -0500)
committerSage Weil <sage@redhat.com>
Thu, 19 Mar 2020 14:29:20 +0000 (09:29 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py

index 3110bb7da0de4c33bd200d33c6c7ec487f8da70a..bde6eddc66c5cb3be5fc27ecf9650b2f3eb501ce 100644 (file)
@@ -961,7 +961,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
                 })
             to_clean = []
             for section in image_settings.keys():
-                if section.startswith(daemon_type + '.'):
+                if section.startswith(name_to_config_section(daemon_type) + '.'):
                     to_clean.append(section)
             if to_clean:
                 self.log.debug('Upgrade: Cleaning up container_image for %s...' %