Skip to content

Commit

Permalink
feat: code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
shambhavi-rani committed Sep 18, 2023
1 parent 6ac25d4 commit 0f1273b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions scripts/deployToDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,15 @@
# ENV VARIABLES
CONTROL_PLANE_URL=sys.argv[1]
print(CONTROL_PLANE_URL)
USERNAME=sys.argv[2]
USERNAME=os.environ['API_USER'] #sys.argv[2]
print(USERNAME)
PASSWORD=sys.argv[3]
print(PASSWORD)
PASSWORD=os.environ['API_PASSWORD'] #sys.argv[3]
#print(PASSWORD)
#########################
# CONSTANTS
HEADER = {"Content-Type": "application/json"}
AUTH = (USERNAME, PASSWORD)
CONFIG_DIR = 'src/configurations'
SELECTOR_KEY_MAP = {
'source': 'name',
'destination': 'name',
'wht-lib-project': 'name',
'account': ['category', 'type'],
}
#########################


Expand Down

0 comments on commit 0f1273b

Please sign in to comment.