Skip to content

Commit 6291748

Browse files
committed
added default RP support for pipeline run
1 parent 8122862 commit 6291748

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ads/common/auth.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,10 @@ def create_signer(self) -> Dict:
689689

690690
@staticmethod
691691
def supported():
692-
return any(os.environ.get(var) for var in ['JOB_RUN_OCID', 'NB_SESSION_OCID', 'DATAFLOW_RUN_ID'])
692+
return any(
693+
os.environ.get(var)
694+
for var in ['JOB_RUN_OCID', 'NB_SESSION_OCID', 'DATAFLOW_RUN_ID', 'PIPELINE_RUN_OCID']
695+
)
693696

694697

695698
class InstancePrincipal(AuthSignerGenerator):

0 commit comments

Comments
 (0)