From ce3f128745ed9aae6d0b5ca68bb8b2b32084341f Mon Sep 17 00:00:00 2001 From: meow Date: Wed, 20 Nov 2019 14:57:12 +0500 Subject: [PATCH] Get Admin Credentials script added --- scripts/get-admin.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/get-admin.py diff --git a/scripts/get-admin.py b/scripts/get-admin.py new file mode 100644 index 0000000..ec5f90b --- /dev/null +++ b/scripts/get-admin.py @@ -0,0 +1,8 @@ +import decouple + +from os.path import join as join_path +from etcd3_wrapper import Etcd3Wrapper + +client = Etcd3Wrapper(port=decouple.config('PORT')) +admin_uotp = client.get(join_path(decouple.config('BASE_PREFIX'), 'admin')) +print(admin_uotp.value) \ No newline at end of file