]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: Change spec to ingress_spec
authorBradley Bishop <bishopbm1@gmail.com>
Tue, 16 Sep 2025 18:34:38 +0000 (14:34 -0400)
committerBradley Bishop <bishopbm1@gmail.com>
Tue, 16 Sep 2025 18:34:38 +0000 (14:34 -0400)
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 <bishopbm1@gmail.com>
src/pybind/mgr/cephadm/serve.py

index 712ebc1d2f94f6add6769b82f2e0dadf9e35ccaf..9504b839f6de5d9c3309a1c2aea7221017856da8 100644 (file)
@@ -802,11 +802,11 @@ class CephadmServe:
                         )
                         found = True
                         break
-                if not found and spec.virtual_interface_networks:
+                if not found and ingress_spec.virtual_interface_networks:
                     for subnet, ifaces in self.mgr.cache.networks.get(host, {}).items():
-                        if subnet in spec.virtual_interface_networks:
+                        if subnet in ingress_spec.virtual_interface_networks:
                             logger.debug(
-                                f'{subnet} found in virtual_interface_networks list {list(spec.virtual_interface_networks)}'
+                                f'{subnet} found in virtual_interface_networks list {list(ingress_spec.virtual_interface_networks)}'
                             )
                             found = True
                             break