]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks: update python.py to use template module
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 6 Mar 2024 17:13:21 +0000 (12:13 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 1 Oct 2025 16:40:25 +0000 (12:40 -0400)
The file python.py was making use of subst_vip from vip.py. The more
generic template.py provides the same functionality as subst_vip plus a
better more general templating system.  Replace subst_vip in this file
so that we can remove subst_vip in the future.

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

index 4ddb14f714538fde77ed2b910cd6d247f18cdd45..f35664227e7524c407b6ac3f1923ee09195b6faa 100644 (file)
@@ -1,6 +1,6 @@
 import logging
 from teuthology import misc as teuthology
-from tasks.vip import subst_vip
+from tasks import template
 
 log = logging.getLogger(__name__)
 
@@ -41,5 +41,6 @@ def task(ctx, config):
         ]
         if sudo:
             args = ['sudo'] + args
-        remote.run(args=args, stdin=subst_vip(ctx, code))
+        code = template.transform(ctx, config, code)
+        remote.run(args=args, stdin=code)