Merge "Added a fix to delete a network."

This commit is contained in:
Jenkins 2017-08-10 18:05:08 +00:00 committed by Gerrit Code Review
commit 57727d3e19

View File

@ -278,6 +278,7 @@ class AwsUtils(object):
@aws_exception
def create_tags_for_vpc(self, neutron_network_id, tags_list):
vpc_id = self.get_vpc_from_neutron_network_id(neutron_network_id)
if vpc_id is not None:
vpc_res = self._get_ec2_resource().Vpc(vpc_id)
vpc_res.create_tags(Tags=tags_list)