From d03b6eb42f160daca4f85b2005ba4c95d44356bd Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Thu, 18 Dec 2014 10:04:15 -0500 Subject: Variable-ized the config file path with the name. --- inventory/multi_ec2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inventory') diff --git a/inventory/multi_ec2.py b/inventory/multi_ec2.py index bb4751113..456bda8c8 100755 --- a/inventory/multi_ec2.py +++ b/inventory/multi_ec2.py @@ -23,7 +23,7 @@ class MultiEc2(object): self.parse_cli_args() # load yaml - if os.path.isfile(os.path.join(self.file_path,"multi_ec2.yaml")): + if os.path.isfile(self.config_file): self.config = self.load_yaml_config() elif os.environ.has_key("AWS_ACCESS_KEY_ID") and os.environ.has_key("AWS_SECRET_ACCESS_KEY"): self.config = {} -- cgit v1.2.3