]> 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)
committerAdam King <adking@redhat.com>
Mon, 15 Apr 2024 14:57:58 +0000 (10:57 -0400)
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>
(cherry picked from commit addc970c1991d6d1e9f0cbc736c279fcde003775)

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}")