Skip to content

Commit 1f276da

Browse files
author
Wang Napieralski
committed
fix pylint
1 parent b2260d2 commit 1f276da

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/sagemaker/session.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3500,11 +3500,10 @@ def get_caller_identity_arn(self):
35003500
NotebookInstanceName=instance_name
35013501
)
35023502
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"]
3503+
user_profile_desc = self.sagemaker_client.describe_user_profile(
3504+
DomainId=domain_id, UserProfileName=user_profile_name
3505+
)
3506+
return user_profile_desc["UserSettings"]["ExecutionRole"]
35083507
except ClientError:
35093508
LOGGER.debug(
35103509
"Couldn't call 'describe_notebook_instance' to get the Role "

0 commit comments

Comments
 (0)