Skip to content

Commit 8867463

Browse files
authored
Fix AWS network creation error when no tags are defined (#46)
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent 5361f45 commit 8867463

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roles/infrastructure/tasks/setup_aws_network.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
# Using CLI due to hardcoded module behavior - see https://github.com/boto/boto3/issues/2929
3030
- name: Update AWS VPC
31+
when: __aws_vpc_tags is defined and __aws_vpc_tags | length > 0
3132
ansible.builtin.command: "aws ec2 create-tags --region {{ infra__region }} --resources {{ infra__aws_vpc_id }} --tags {{ __aws_vpc_tags | join(' ') }}"
3233

3334
- name: Set up AWS VPC

0 commit comments

Comments
 (0)