@@ -27790,6 +27790,11 @@ try {
27790
27790
throw new Error("Traffic is required");
27791
27791
}
27792
27792
27793
+ // Check if deployment YAML file exists
27794
+ if (!deploymentYamlFilePath) {
27795
+ throw new Error("Deployment YAML file path is required.");
27796
+ }
27797
+
27793
27798
// Check if the resource group exists
27794
27799
console.log(`🔹 Checking if resource group '${resourceGroup}' exists...`)
27795
27800
;
@@ -27825,7 +27830,7 @@ try {
27825
27830
}
27826
27831
27827
27832
// Check if registry name is provided
27828
- if (registryName !== undefined) {
27833
+ if (registryName !== undefined && registryName !== "" ) {
27829
27834
27830
27835
// Check if the registry exists
27831
27836
console.log(`🔹 Checking if registry '${registryName}' exists in resource group '${registryResourceGroup}'...`);
@@ -27839,7 +27844,7 @@ try {
27839
27844
}
27840
27845
27841
27846
// Check if model exists in registry
27842
- if(registryName !== undefined) {
27847
+ if(registryName !== undefined && registryName !== "" ) {
27843
27848
console.log(`🔹 Checking if model '${modelName}' exists in registry '${registryName}'...`);
27844
27849
27845
27850
const modelInRegistryExists = await checkIfModelInRegistryExists(
@@ -27863,10 +27868,6 @@ try {
27863
27868
}
27864
27869
}
27865
27870
27866
- // Check if deployment YAML file exists
27867
- if (!deploymentYamlFilePath) {
27868
- throw new Error("Deployment YAML file path is required.");
27869
- }
27870
27871
console.log(`🔹 Checking if deployment YAML file '${deploymentYamlFilePath}' exists...`);
27871
27872
27872
27873
// Check if the deployment YAML file exists
0 commit comments