From 50b320615eee3235b5178637ad8793cefe79c7fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20Schr=C3=B6der?= Date: Sun, 14 Jun 2015 22:13:27 +0200 Subject: [PATCH] Little improvement in the organization of the configuration loader method --- plugins/inventory/ec2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/inventory/ec2.py b/plugins/inventory/ec2.py index c7fa6bdb15..80afee7444 100755 --- a/plugins/inventory/ec2.py +++ b/plugins/inventory/ec2.py @@ -238,11 +238,13 @@ class Ec2Inventory(object): if config.has_option('ec2', 'elasticache'): self.elasticache_enabled = config.getboolean('ec2', 'elasticache') - # Return all EC2 and RDS instances (if RDS is enabled) + # Return all EC2 instances? if config.has_option('ec2', 'all_instances'): self.all_instances = config.getboolean('ec2', 'all_instances') else: self.all_instances = False + + # Return all RDS instances? (if RDS is enabled) if config.has_option('ec2', 'all_rds_instances') and self.rds_enabled: self.all_rds_instances = config.getboolean('ec2', 'all_rds_instances') else: