Untitled

 avatar
unknown
plain_text
9 months ago
955 B
33
Indexable
import argparse
import subprocess

from ots_client import OTSClient

ots_client = None

def authenticate_oci():
    """Authenticate with OCI CLI using session and profile."""
    try:
        subprocess.run([
            "oci", "session", "authenticate",
            "--region", "us-abilene-1",
            "--tenancy-name", "bmc_operator_access",
            "--profile-name", "BOAT"
        ], check=True)
        print("OCI authentication successful")
    except subprocess.CalledProcessError as e:
        print(f"OCI authentication failed: {e}")



def main(csv_file_path):
    print(f"The Script output path: {csv_file_path}")
    ots_client = OTSClient()
    authenticate_oci()
    # Config





if __name__ == "__main__":
    parser = argparse.ArgumentParser(description='KPI Analysis Script')
    parser.add_argument('--csv_file_path', type=str, help='Path to CSV files', required=True)
    args = parser.parse_args()
    main(args.csv_file_path)
Editor is loading...
Leave a Comment