From 4498bbe77f58c59583bcb8b9ca1aae33296b329f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 15 Apr 2021 16:59:09 -0500 Subject: [PATCH] mgr/orchestrator: orch ls: leave off virtual_ip prefixlen Signed-off-by: Sage Weil --- src/pybind/mgr/orchestrator/_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/orchestrator/_interface.py b/src/pybind/mgr/orchestrator/_interface.py index 550d0b623ac..6f14a78cde3 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() -- 2.39.5