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>
import logging
from teuthology import misc as teuthology
-from tasks.vip import subst_vip
+from tasks import template
log = logging.getLogger(__name__)
]
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)