X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwcal%2Ftest%2Fec2.py;h=175017ad4f280e5322d278fd45c30e223a14fb88;hb=4870d0ee29789b859931e4e2c73e13dcb29537d5;hp=59ad04939acc1246adcca69c35d01335357c9dbf;hpb=6f07e6f33f751ab4ffe624f6037f887b243bece2;p=osm%2FSO.git diff --git a/rwcal/test/ec2.py b/rwcal/test/ec2.py index 59ad0493..175017ad 100644 --- a/rwcal/test/ec2.py +++ b/rwcal/test/ec2.py @@ -178,7 +178,7 @@ class RWEC2(object): kwds = {'subnet_id': __default_subnet__} else: kwds = {'network_interfaces': net_ifs} - print net_ifs + print(net_ifs) new_reservation = self._conn.run_instances( image_id=self._ami, @@ -220,7 +220,7 @@ class RWEC2(object): addr = "%s.%s.10%d.0/25" % (subnet_addrs_split[0], subnet_addrs_split[1], i) try: subnet = vpc_conn.create_subnet(vpc.id, addr) - except boto.exception.EC2ResponseError, e: + except boto.exception.EC2ResponseError as e: if 'InvalidSubnet.Conflict' == e.error_code: subnet = vpc_conn.get_all_subnets(filters=[('vpcId', vpc.id), ('cidrBlock', addr)])[0] else: