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):
28322832 )
28332833 return instance_desc ["RoleArn" ]
28342834 except ClientError :
2835- LOGGER .warning (
2835+ LOGGER .debug (
28362836 "Couldn't call 'describe_notebook_instance' to get the Role "
28372837 "ARN of the instance %s." ,
28382838 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
318318 expected_role = "arn:aws:iam::369233609183:role/SageMakerRole"
319319 sess .boto_session .client ("iam" ).get_role .return_value = {"Role" : {"Arn" : expected_role }}
320320
321- with patch ("logging.Logger.warning " ) as mock_logger :
321+ with patch ("logging.Logger.debug " ) as mock_logger :
322322 actual = sess .get_caller_identity_arn ()
323323 mock_logger .assert_called_once ()
324324
You can’t perform that action at this time.
0 commit comments