| Server IP : 152.69.216.235 / Your IP : 80.80.80.28 Web Server : Apache/2.4.37 (Oracle Linux Server) System : Linux ust-wp4-prod 5.15.0-310.184.5.2.el8uek.x86_64 #2 SMP Wed Jul 9 16:08:33 PDT 2025 x86_64 User : apache ( 48) PHP Version : 8.4.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/ |
Upload File : |
#!/bin/bash
# Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.
# Read the OCI SDK config and return the config data through stdout.
_PY3=/usr/bin/python3.6
s_dir=`${_PY3} -c 'import os.path ; import oci_utils.impl ; print (os.path.dirname(oci_utils.impl.__file__))' 2>/dev/null`
_PY_CMD=oci_show_config_main.py
exec ${_PY3} ${s_dir}/${_PY_CMD}
# __GT__ kept this for reference, for now
#
# import json
# import sys
#
# import oci_utils.oci_api
#
# debug = False
#
#
# def response(status, **kwargs):
# """
# Send a json formatted response to stdout, jdata is already json formatted.
#
# Parameters
# ----------
# status: str
# The status.
# kwargs: key,value
# The data to convert to json.
#
# Returns
# -------
# str
# The json formatted version of **kwargs
# """
# resp = {'status': status}
# for key, val in kwargs.items():
# resp[key] = val
# sys.stdout.write(json.dumps(resp) + '\n')
# sys.stdout.flush()
#
#
# def main():
# """
# Main program
#
# Returns
# -------
# int
# 0
# """
# try:
# session = oci_utils.oci_api.OCISession(
# authentication_method=oci_utils.oci_api.DIRECT)
# except Exception as e:
# response('ERROR', data=str(e))
# return 1
#
# response('OK', data=session.oci_config)
# return 0
#
#
# if __name__ == "__main__":
# sys.exit(main())