From 59ef3382e4e5053f5f1218cea10efb4de6f33e20 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Mon, 7 Oct 2019 12:40:25 +0200 Subject: [PATCH] openstack: use python3 compatible print Signed-off-by: Kyr Shatskyy --- teuthology/openstack/setup-openstack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/openstack/setup-openstack.sh b/teuthology/openstack/setup-openstack.sh index 3bc16939f2..9089a9edc4 100755 --- a/teuthology/openstack/setup-openstack.sh +++ b/teuthology/openstack/setup-openstack.sh @@ -347,7 +347,7 @@ function setup_dnsmasq() { function subnet_names_and_ips() { local subnet=$1 - python -c 'import netaddr; print "\n".join([str(i) for i in netaddr.IPNetwork("'$subnet'")])' | + python -c 'import netaddr; print("\n".join([str(i) for i in netaddr.IPNetwork("'$subnet'")]))' | sed -e 's/\./ /g' | while read a b c d ; do printf "target%03d%03d%03d%03d " $a $b $c $d echo $a.$b.$c.$d -- 2.39.5