Skip to content

Commit 1566935

Browse files
author
Jonathan Makunga
committed
Fix integ tests
1 parent 0c7d876 commit 1566935

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/sagemaker/session.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4288,7 +4288,8 @@ def create_endpoint(self, endpoint_name, config_name, tags=None, wait=True, live
42884288
res = self.sagemaker_client.create_endpoint(
42894289
EndpointName=endpoint_name, EndpointConfigName=config_name, Tags=tags
42904290
)
4291-
self.endpoint_arn = res["EndpointArn"]
4291+
if res:
4292+
self.endpoint_arn = res["EndpointArn"]
42924293

42934294
if wait:
42944295
self.wait_for_endpoint(endpoint_name, live_logging=live_logging)
@@ -4350,7 +4351,8 @@ def update_endpoint(self, endpoint_name, endpoint_config_name, wait=True):
43504351
res = self.sagemaker_client.update_endpoint(
43514352
EndpointName=endpoint_name, EndpointConfigName=endpoint_config_name
43524353
)
4353-
self.endpoint_arn = res["EndpointArn"]
4354+
if res:
4355+
self.endpoint_arn = res["EndpointArn"]
43544356

43554357
if wait:
43564358
self.wait_for_endpoint(endpoint_name)

0 commit comments

Comments
 (0)