Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanochShayner committed Jul 29, 2024
1 parent 372ecbd commit 297e028
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion checkov/arm/checks/resource/ACREnableZoneRedundancy.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def scan_resource_conf(self, conf: dict[str, list[Any]]) -> CheckResult:
# check registry. default=false
properties = conf.get("properties")
if properties and isinstance(properties, dict):
if properties.get("zoneRedundancy") == "disabled":
if properties.get("zoneRedundancy") == "Disabled":
return CheckResult.FAILED
return CheckResult.PASSED

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"properties": {
"adminUserEnabled": "[parameters('acrAdminUserEnabled')]",
"zoneRedundancy":
"disabled"
"Disabled"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"[resourceId('Microsoft.ContainerRegistry/registries/', parameters('acrName'))]"
],
"properties": {
"zoneRedundancy": "disabled"
"zoneRedundancy": "Disabled"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"properties": {
"adminUserEnabled": "[parameters('acrAdminUserEnabled')]",
"zoneRedundancy": "enabled"
"zoneRedundancy": "Enabled"
}
}]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"[resourceId('Microsoft.ContainerRegistry/registries/', parameters('acrName'))]"
],
"properties": {
"zoneRedundancy": "enabled"
"zoneRedundancy": "Enabled"
},

"outputs": {
Expand Down

0 comments on commit 297e028

Please sign in to comment.