mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Pass boto_profile to get_route53_records (#14354)
* Pass boto_profile to get_route53_records * Add conditional around r53_conn to check for boto_profile
This commit is contained in:
parent
34e6cc788f
commit
047ed2728c
1 changed files with 4 additions and 1 deletions
|
@ -1293,6 +1293,9 @@ class Ec2Inventory(object):
|
|||
''' Get and store the map of resource records to domain names that
|
||||
point to them. '''
|
||||
|
||||
if self.boto_profile:
|
||||
r53_conn = route53.Route53Connection(profile_name=self.boto_profile)
|
||||
else:
|
||||
r53_conn = route53.Route53Connection()
|
||||
all_zones = r53_conn.get_zones()
|
||||
|
||||
|
|
Loading…
Reference in a new issue