]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: use keyword instead of positional args
authorMichael Fritch <mfritch@suse.com>
Mon, 27 Apr 2020 17:42:26 +0000 (11:42 -0600)
committerSebastian Wagner <sebastian.wagner@suse.com>
Thu, 21 May 2020 21:33:18 +0000 (23:33 +0200)
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 7efa0a6fdadcafb4df0cd1068f7b8482ebae0ce5)

src/pybind/mgr/cephadm/module.py

index 0edd76de4e39b97cd9a93a0e69a09ae15b6d6e62..d8237588bbba64e80ff71fee2bd46da46fc94844 100644 (file)
@@ -2464,7 +2464,8 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
                     config_func(spec)
                     did_config = True
                 daemon_id = self.get_unique_name(daemon_type, host, daemons,
-                                                 spec.service_id, name)
+                                                 prefix=spec.service_id,
+                                                 forcename=name)
                 self.log.debug('Placing %s.%s on host %s' % (
                     daemon_type, daemon_id, host))
                 if daemon_type == 'mon':
@@ -2610,7 +2611,8 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
         args = []  # type: List[tuple]
         for host, network, name in hosts:
             daemon_id = self.get_unique_name(daemon_type, host, daemons,
-                                             spec.service_id, name)
+                                             prefix=spec.service_id,
+                                             forcename=name)
             self.log.debug('Placing %s.%s on host %s' % (
                 daemon_type, daemon_id, host))
             if daemon_type == 'mon':