mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Clean up lines with only whitespaces in ec2.py
This commit is contained in:
parent
53756af546
commit
8a17da299f
1 changed files with 3 additions and 3 deletions
|
@ -240,7 +240,7 @@ class Ec2Inventory(object):
|
||||||
self.hostname_variable = config.get('ec2', 'hostname_variable')
|
self.hostname_variable = config.get('ec2', 'hostname_variable')
|
||||||
else:
|
else:
|
||||||
self.hostname_variable = None
|
self.hostname_variable = None
|
||||||
|
|
||||||
# Route53
|
# Route53
|
||||||
self.route53_enabled = config.getboolean('ec2', 'route53')
|
self.route53_enabled = config.getboolean('ec2', 'route53')
|
||||||
self.route53_excluded_zones = []
|
self.route53_excluded_zones = []
|
||||||
|
@ -643,7 +643,7 @@ class Ec2Inventory(object):
|
||||||
# If we can't get a nice hostname, use the destination address
|
# If we can't get a nice hostname, use the destination address
|
||||||
if not hostname:
|
if not hostname:
|
||||||
hostname = dest
|
hostname = dest
|
||||||
|
|
||||||
hostname = self.to_safe(hostname).lower()
|
hostname = self.to_safe(hostname).lower()
|
||||||
|
|
||||||
# if we only want to include hosts that match a pattern, skip those that don't
|
# if we only want to include hosts that match a pattern, skip those that don't
|
||||||
|
@ -783,7 +783,7 @@ class Ec2Inventory(object):
|
||||||
# If we can't get a nice hostname, use the destination address
|
# If we can't get a nice hostname, use the destination address
|
||||||
if not hostname:
|
if not hostname:
|
||||||
hostname = dest
|
hostname = dest
|
||||||
|
|
||||||
hostname = self.to_safe(hostname).lower()
|
hostname = self.to_safe(hostname).lower()
|
||||||
|
|
||||||
# Add to index
|
# Add to index
|
||||||
|
|
Loading…
Reference in a new issue