diff options
Diffstat (limited to 'admportal/shell/getAdmPortalProp.py')
-rwxr-xr-x | admportal/shell/getAdmPortalProp.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/admportal/shell/getAdmPortalProp.py b/admportal/shell/getAdmPortalProp.py new file mode 100755 index 00000000..2e0ea797 --- /dev/null +++ b/admportal/shell/getAdmPortalProp.py @@ -0,0 +1,13 @@ +#!/usr/bin/python + +import json +import sys +import os + +propfile = os.getenv('SDNC_CONFIG_DIR') + '/admportal.json' + +from pprint import pprint + +with open(propfile) as data_file: + data = json.load(data_file) +pprint( str(data[sys.argv[1]])) |