Skip to content

Commit

Permalink
Handle when no license type is set (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Dec 20, 2024
1 parent ef734d8 commit 45bbb66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ public AzureVMDeploymentInfo createDeployment(
putParameter(parameters, "authenticationType", "key");
}

if (!Constants.NO_LICENSE_TYPE.contains(template.getLicenseType())) {
if (template.getLicenseType() != null && !Constants.NO_LICENSE_TYPE.contains(template.getLicenseType())) {

Check warning on line 735 in src/main/java/com/microsoft/azure/vmagent/AzureVMManagementServiceDelegate.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 735 is not covered by tests
addLicenseType(tmp, template.getLicenseType());
}

Expand Down

0 comments on commit 45bbb66

Please sign in to comment.