Skip to content

Commit 8a31fce

Browse files
committed
fix(contrib): Zone argument not supported for aws
Fixes the usage of the zone argument for route53-wild.card.py
1 parent 0bd2471 commit 8a31fce

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

contrib/aws/route53-wildcard.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ def delete_cname(args, block=False):
6565
if __name__ == '__main__':
6666
args = parse_args()
6767

68-
# calculate zone from provided name
69-
zone = '.'.join(args['<name>'].split('.')[-2:])
70-
args['<zone>'] = zone
68+
if args['--zone'] == None:
69+
zone = '.'.join(args['<name>'].split('.')[-2:])
70+
args['<zone>'] = zone
71+
else:
72+
args['<zone>'] = args['--zone']
7173

7274
# add a * to the provided name
7375
args['<name>'] = u'\\052.'+unicode(args['<name>'])

0 commit comments

Comments
 (0)