We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2260d2 commit 1f276daCopy full SHA for 1f276da
src/sagemaker/session.py
@@ -3500,11 +3500,10 @@ def get_caller_identity_arn(self):
3500
NotebookInstanceName=instance_name
3501
)
3502
return instance_desc["RoleArn"]
3503
- else:
3504
- user_profile_desc = self.sagemaker_client.describe_user_profile(
3505
- DomainId=domain_id, UserProfileName=user_profile_name
3506
- )
3507
- return user_profile_desc["UserSettings"]["ExecutionRole"]
+ user_profile_desc = self.sagemaker_client.describe_user_profile(
+ DomainId=domain_id, UserProfileName=user_profile_name
+ )
+ return user_profile_desc["UserSettings"]["ExecutionRole"]
3508
except ClientError:
3509
LOGGER.debug(
3510
"Couldn't call 'describe_notebook_instance' to get the Role "
0 commit comments