From: Sage Weil Date: Thu, 15 Apr 2021 21:59:09 +0000 (-0500) Subject: mgr/orchestrator: orch ls: leave off virtual_ip prefixlen X-Git-Tag: v17.1.0~2221^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4498bbe77f58c59583bcb8b9ca1aae33296b329f;p=ceph.git mgr/orchestrator: orch ls: leave off virtual_ip prefixlen Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/orchestrator/_interface.py b/src/pybind/mgr/orchestrator/_interface.py index 550d0b623ac0..6f14a78cde3f 100644 --- a/src/pybind/mgr/orchestrator/_interface.py +++ b/src/pybind/mgr/orchestrator/_interface.py @@ -1067,7 +1067,7 @@ class ServiceDescription(object): def get_port_summary(self) -> str: if not self.ports: return '' - return f"{self.virtual_ip or '?'}:{','.join(map(str, self.ports or []))}" + return f"{(self.virtual_ip or '?').split('/')[0]}:{','.join(map(str, self.ports or []))}" def to_json(self) -> OrderedDict: out = self.spec.to_json()