uotp/scripts/get-admin.py

8 lines
246 B
Python
Raw Normal View History

2019-11-20 14:57:12 +05:00
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)