diff --git a/AWX_collector.py b/AWX_collector.py index 992e139..8ad79e5 100644 --- a/AWX_collector.py +++ b/AWX_collector.py @@ -43,7 +43,8 @@ ROOT_PATH = f"/usr/local/sdt/app/{args.config}" # JSON FILE READ # ############################################################################### -with open(f"{args.config}/connect_info.json","r") as f: +with open(f"{ROOT_PATH}/connect_info.json","r") as f: +#with open(f"{args.config}/connect_info.json","r") as f: info = json.load(f) @@ -53,7 +54,8 @@ with open(f"{args.config}/connect_info.json","r") as f: -with open(f"{args.config}/config.json","r") as f: +with open(f"{ROOT_PATH}/config.json","r") as f: +#with open(f"{args.config}/config.json","r") as f: data = json.load(f) print(data)