Skip to content

Commit fb91511

Browse files
authored
Fix expand-role to use boto_session field (aws#232)
1 parent c72121b commit fb91511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sagemaker/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ def expand_role(self, role):
679679
if '/' in role:
680680
return role
681681
else:
682-
return boto3.resource("iam").Role(role).arn
682+
return self.boto_session.resource('iam').Role(role).arn
683683

684684
def get_caller_identity_arn(self):
685685
"""Returns the ARN user or role whose credentials are used to call the API.

0 commit comments

Comments
 (0)