From 0dc77ad175465ded80c0db7737cfca61cfe409d7 Mon Sep 17 00:00:00 2001 From: YujinChu Date: Fri, 8 Sep 2023 07:17:36 +0000 Subject: [PATCH] check ok --- AWX_collector.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)