From 9fcf6e43b0af1ffe9228f413450b15bfb149e37a Mon Sep 17 00:00:00 2001 From: Guillaume Falourd Date: Wed, 27 Sep 2023 10:58:28 -0300 Subject: [PATCH] update runtime.py request data Signed-off-by: Guillaume Falourd --- runtime.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/runtime.py b/runtime.py index f8cd11e..021d875 100644 --- a/runtime.py +++ b/runtime.py @@ -9,7 +9,6 @@ CLIENT_KEY = os.getenv("CLIENT_KEY") CLIENT_REALM = os.getenv("CLIENT_REALM") VERSION_TAG = os.getenv("VERSION_TAG") -CHECKOUT_BRANCH = os.getenv("CHECKOUT_BRANCH") TF_STATE_BUCKET_NAME = os.getenv("TF_STATE_BUCKET_NAME") TF_STATE_REGION = os.getenv("TF_STATE_REGION") IAC_BUCKET_NAME = os.getenv("IAC_BUCKET_NAME") @@ -52,12 +51,14 @@ request_data = { "config": { "tfstate": { - "bucket": TF_STATE_BUCKET_NAME, - "region": TF_STATE_REGION - }, - "iac": { - "bucket": IAC_BUCKET_NAME, - "region": IAC_REGION + "bucket": TF_STATE_BUCKET_NAME, + "region": TF_STATE_REGION + } + # }, + # "iac": { + # "bucket": IAC_BUCKET_NAME, + # "region": IAC_REGION + # } }, "isApi": False, # FOR NOW "apiContractPath": "./swagger.yaml", # FOR NOW @@ -65,9 +66,10 @@ "workspaceId": wksId, "versionTag": VERSION_TAG, "manifesto": manifesto_json - } } + print("Deploy request", request_data) + deploy_headers = {"Authorization": f"Bearer {access_token}"} if manifestoType == 'application':