File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2832,7 +2832,7 @@ def get_caller_identity_arn(self):
2832
2832
)
2833
2833
return instance_desc ["RoleArn" ]
2834
2834
except ClientError :
2835
- LOGGER .warning (
2835
+ LOGGER .debug (
2836
2836
"Couldn't call 'describe_notebook_instance' to get the Role "
2837
2837
"ARN of the instance %s." ,
2838
2838
instance_name ,
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ def test_get_caller_identity_arn_from_a_role_after_describe_notebook_exception(b
318
318
expected_role = "arn:aws:iam::369233609183:role/SageMakerRole"
319
319
sess .boto_session .client ("iam" ).get_role .return_value = {"Role" : {"Arn" : expected_role }}
320
320
321
- with patch ("logging.Logger.warning " ) as mock_logger :
321
+ with patch ("logging.Logger.debug " ) as mock_logger :
322
322
actual = sess .get_caller_identity_arn ()
323
323
mock_logger .assert_called_once ()
324
324
You can’t perform that action at this time.
0 commit comments