From a1781f99e93eef62a7e6ae2fcfaadbb9220ef190 Mon Sep 17 00:00:00 2001 From: Lakshmi Nageswari Ramireddy Date: Fri, 6 Dec 2024 12:57:17 +0530 Subject: [PATCH 1/4] Update the environment variable --- cumulusci/tasks/vlocity/vlocity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cumulusci/tasks/vlocity/vlocity.py b/cumulusci/tasks/vlocity/vlocity.py index c1d0f68085..ccceb52f93 100644 --- a/cumulusci/tasks/vlocity/vlocity.py +++ b/cumulusci/tasks/vlocity/vlocity.py @@ -27,7 +27,7 @@ LWC_RSS_NAME = "OmniStudioLightning" OMNI_NAMESPACE = "omnistudio" VBT_SF_ALIAS = "cci-vbt-target" -SF_TOKEN_ENV = "SFDX_ACCESS_TOKEN" +SF_TOKEN_ENV = "SF_ACCESS_TOKEN" VBT_TOKEN_ENV = "OMNIOUT_TOKEN" From ac1ea399546eafc35b677af4dba46d7b49961d79 Mon Sep 17 00:00:00 2001 From: Lakshmi Nageswari Ramireddy Date: Fri, 6 Dec 2024 20:04:59 +0530 Subject: [PATCH 2/4] Update the sf command to sfdx command for vlocity CLI --- cumulusci/tasks/vlocity/vlocity.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cumulusci/tasks/vlocity/vlocity.py b/cumulusci/tasks/vlocity/vlocity.py index ccceb52f93..2071a61c83 100644 --- a/cumulusci/tasks/vlocity/vlocity.py +++ b/cumulusci/tasks/vlocity/vlocity.py @@ -27,7 +27,7 @@ LWC_RSS_NAME = "OmniStudioLightning" OMNI_NAMESPACE = "omnistudio" VBT_SF_ALIAS = "cci-vbt-target" -SF_TOKEN_ENV = "SF_ACCESS_TOKEN" +SF_TOKEN_ENV = "SFDX_ACCESS_TOKEN" VBT_TOKEN_ENV = "OMNIOUT_TOKEN" @@ -105,8 +105,8 @@ def _add_token_to_sfdx(self, access_token: str, instance_url: str) -> str: """ # TODO: Use the sf v2 form of this command instead (when we migrate) token_store_cmd = [ - "sf", - "org login access-token", + "sfdx", + "force:auth:accesstoken:store", "--no-prompt", "--alias", f"{VBT_SF_ALIAS}", From 9c4414e43a28ca0283ef42548b595b8b854c1d5b Mon Sep 17 00:00:00 2001 From: Lakshmi Nageswari Ramireddy Date: Wed, 11 Dec 2024 08:58:58 +0530 Subject: [PATCH 3/4] Updated the command format --- cumulusci/tasks/vlocity/vlocity.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cumulusci/tasks/vlocity/vlocity.py b/cumulusci/tasks/vlocity/vlocity.py index 2071a61c83..adf43d1a1e 100644 --- a/cumulusci/tasks/vlocity/vlocity.py +++ b/cumulusci/tasks/vlocity/vlocity.py @@ -105,8 +105,10 @@ def _add_token_to_sfdx(self, access_token: str, instance_url: str) -> str: """ # TODO: Use the sf v2 form of this command instead (when we migrate) token_store_cmd = [ - "sfdx", - "force:auth:accesstoken:store", + "sf", + "org", + "login", + "access-token", "--no-prompt", "--alias", f"{VBT_SF_ALIAS}", From 14ff9fbd91035c6ab78e0507f1dae98f2d672d28 Mon Sep 17 00:00:00 2001 From: Lakshmi Nageswari Ramireddy Date: Wed, 11 Dec 2024 11:08:31 +0530 Subject: [PATCH 4/4] Update the environment variable --- cumulusci/tasks/vlocity/vlocity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cumulusci/tasks/vlocity/vlocity.py b/cumulusci/tasks/vlocity/vlocity.py index adf43d1a1e..7c772b97d1 100644 --- a/cumulusci/tasks/vlocity/vlocity.py +++ b/cumulusci/tasks/vlocity/vlocity.py @@ -27,7 +27,7 @@ LWC_RSS_NAME = "OmniStudioLightning" OMNI_NAMESPACE = "omnistudio" VBT_SF_ALIAS = "cci-vbt-target" -SF_TOKEN_ENV = "SFDX_ACCESS_TOKEN" +SF_TOKEN_ENV = "SF_ACCESS_TOKEN" VBT_TOKEN_ENV = "OMNIOUT_TOKEN"