Skip to content

Commit f7fa713

Browse files
authored
Merge pull request #64 from QualiSystemsLab/fix_azure_clp_error
fix azure clp error
2 parents 8d331cf + 02bfe4e commit f7fa713

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package/cloudshell/iac/terraform/services/clp_envvar_handler.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ def __init__(self, clp_res_model, clp_resource_attributes, shell_helper):
5757

5858
def set_env_vars_based_on_clp(self):
5959
for attr in self._clp_resource_attributes:
60-
if self.does_attribute_match(self._clp_res_model, attr, self._shell_helper, "Azure Subscription ID"):
60+
if self.does_attribute_match(self._clp_res_model, attr, "Azure Subscription ID"):
6161
os.environ["ARM_SUBSCRIPTION_ID"] = attr.Value
62-
if self.does_attribute_match(self._clp_res_model, attr, self._shell_helper, "Azure Tenant ID"):
63-
os.environ["Azure Tenant ID"] = attr.Value
64-
if self.does_attribute_match(self._clp_res_model, attr, self._shell_helper, "Azure Application ID"):
62+
if self.does_attribute_match(self._clp_res_model, attr, "Azure Tenant ID"):
63+
os.environ["ARM_TENANT_ID"] = attr.Value
64+
if self.does_attribute_match(self._clp_res_model, attr, "Azure Application ID"):
6565
os.environ["ARM_CLIENT_ID"] = attr.Value
66-
if self.does_attribute_match(self._clp_res_model, attr, self._shell_helper, "Azure Application Key", True):
66+
if self.does_attribute_match(self._clp_res_model, attr, "Azure Application Key"):
6767
os.environ["ARM_CLIENT_SECRET"] = self._shell_helper.api.DecryptPassword(attr.Value).Value

package/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
1.1.2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
cloudshell-iac-terraform==1.1.0
1+
cloudshell-iac-terraform>=1.1.0,<1.2.0
22
cloudshell-shell-core==5.0.5

0 commit comments

Comments
 (0)