소스 검색

Variable-ized the config file path with the name.

Kenny Woodson 10 년 전
부모
커밋
d03b6eb42f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      inventory/multi_ec2.py

+ 1 - 1
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 = {}