mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
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 <jmulligan@redhat.com>
This commit is contained in:
parent
f87e622265
commit
0b61b1c1ff
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user