Skip to content

Commit ef0553a

Browse files
committed
fix: fix bug in monitor.attach() for empty network_config (#304)
1 parent f1bed5e commit ef0553a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sagemaker/model_monitor/model_monitoring.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,6 +1531,7 @@ def attach(cls, monitor_schedule_name, sagemaker_session=None):
15311531
if vpc_config is not None:
15321532
subnets = vpc_config["Subnets"]
15331533

1534+
network_config = None
15341535
if network_config_dict:
15351536
network_config = NetworkConfig(
15361537
enable_network_isolation=network_config_dict["EnableNetworkIsolation"],

0 commit comments

Comments
 (0)