Skip to content

Commit d613071

Browse files
committed
mgr/cephadm: Change spec to ingress_spec
Changed from using spec to ingress_spec to be consistent with the function and fix the spec errors. Fixes: https://tracker.ceph.com/issues/66874 Signed-off-by: Bradley Bishop <[email protected]>
1 parent bb14e76 commit d613071

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pybind/mgr/cephadm/serve.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -802,11 +802,11 @@ def has_interface_for_vip(host: str, sspec: ServiceSpec) -> bool:
802802
)
803803
found = True
804804
break
805-
if not found and spec.virtual_interface_networks:
805+
if not found and ingress_spec.virtual_interface_networks:
806806
for subnet, ifaces in self.mgr.cache.networks.get(host, {}).items():
807-
if subnet in spec.virtual_interface_networks:
807+
if subnet in ingress_spec.virtual_interface_networks:
808808
logger.debug(
809-
f'{subnet} found in virtual_interface_networks list {list(spec.virtual_interface_networks)}'
809+
f'{subnet} found in virtual_interface_networks list {list(ingress_spec.virtual_interface_networks)}'
810810
)
811811
found = True
812812
break

0 commit comments

Comments
 (0)