Skip to content

Commit 441319e

Browse files
authored
fixing invalid subnet validation in compute instance (#36711)
* fixing sweep job service response parsing issue * fixing sweep job service response parsing issue * raising a work around for cmd job and spark job name lowering case * fixing black issue * fixing serialization issue in sweep job * include black fix * found and fix the issue in compute validation * fixing a corrupt wokspace arm template * fixing the failed test case * updating the date for 1.18.0 release * removing empty section * adding in progress version details * adding IDC code reviewers * correcting the directory path * lint fix * adding change log entry * addressing review comment * fixing ut * addressing api review comment * adding a fix for subnet validation in compute instance * my py fix
1 parent 8898835 commit 441319e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_compute/compute_instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def _to_dict(self) -> Dict:
344344
return res
345345

346346
def _set_full_subnet_name(self, subscription_id: str, rg: str) -> None:
347-
if self.network_settings:
347+
if self.network_settings and (self.network_settings.vnet_name or self.network_settings.subnet):
348348
self.subnet = get_subnet_str(
349349
self.network_settings.vnet_name,
350350
self.network_settings.subnet,

0 commit comments

Comments
 (0)