Skip to content

Commit 5531a79

Browse files
committed
Fixes opctl auth parameter.
1 parent 40895a0 commit 5531a79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ads/opctl/config/merger.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ def _fill_config_with_defaults(self, ads_config_path: str) -> None:
124124
exec_config.get("auth") or AuthType.API_KEY
125125
)
126126
# determine profile
127-
if self.config["execution"]["auth"] == AuthType.RESOURCE_PRINCIPAL:
127+
if self.config["execution"]["auth"] in (
128+
AuthType.RESOURCE_PRINCIPAL,
129+
AuthType.INSTANCE_PRINCIPAL,
130+
):
128131
profile = self.config["execution"]["auth"].upper()
129132
exec_config.pop("oci_profile", None)
130133
self.config["execution"]["oci_profile"] = None

0 commit comments

Comments
 (0)