From 0b61b1c1ff63fc8a85da32f5864eaef5aa133d60 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 6 Mar 2024 12:13:21 -0500 Subject: [PATCH] qa/tasks: update python.py to use template module 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 --- qa/tasks/python.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qa/tasks/python.py b/qa/tasks/python.py index 4ddb14f7145..f35664227e7 100644 --- a/qa/tasks/python.py +++ b/qa/tasks/python.py @@ -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) -- 2.39.5