From 865ad4936bd57b8dfc436a30375328a847d19147 Mon Sep 17 00:00:00 2001 From: lakshmi2506 <141401869+lakshmi2506@users.noreply.github.com> Date: Thu, 12 Dec 2024 00:38:55 +0530 Subject: [PATCH] @W-17366392: Fix Omnistudio issues for the sf command format (#3855) --- 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 c1d0f68085..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" @@ -106,7 +106,9 @@ 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", + "org", + "login", + "access-token", "--no-prompt", "--alias", f"{VBT_SF_ALIAS}",