Skip to content

Commit

Permalink
Fixing issue when azure policy is not configured
Browse files Browse the repository at this point in the history
Signed-off-by: Facundo Gauna <[email protected]>
  • Loading branch information
fgauna12mars committed Apr 7, 2022
1 parent 46077c4 commit d231d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/clusterSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export function checkForAzurePolicy(clusterDetails) {
let details = [];

// Check if Azure policy is enabled
var azurePolicy = clusterDetails.addonProfiles.azurepolicy;
var azurePolicy = clusterDetails.addonProfiles?.azurepolicy;
var azurePolicyConfigured = azurePolicy && azurePolicy.enabled;

// Log output
Expand Down

0 comments on commit d231d93

Please sign in to comment.