]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks: make _map_vips private
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 20 Feb 2024 00:18:08 +0000 (19:18 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 29 Feb 2024 15:00:29 +0000 (10:00 -0500)
Nothing outside of vip.py called map_vips, so let us make sure this
is considered a private function and prefix it with the underscore.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
qa/tasks/vip.py

index 8e5f44efd6d5866720e10f5b8e916d017e6d79d6..6554f12875381118981060cd0e0a3f5041489f99 100644 (file)
@@ -69,7 +69,7 @@ def exec(ctx, config):
                 )
 
 
-def map_vips(mip, count):
+def _map_vips(mip, count):
     vip_entries = teuth_config.get('vip', [])
     if not vip_entries:
         raise ConfigError(
@@ -146,7 +146,7 @@ def task(ctx, config):
         ip = remote.ssh.get_transport().getpeername()[0]
         log.info(f'peername {ip}')
         mip = ipaddress.ip_address(ip)
-        vnet, vips = map_vips(mip, count + 1)
+        vnet, vips = _map_vips(mip, count + 1)
         static = vips.pop(0)
         log.info(f"{remote.hostname} static {static}, vnet {vnet}")