Skip to content

Commit

Permalink
Handle default value for azure addon policy (#2905)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmcand authored Jan 10, 2025
2 parents 694d91b + ed494e0 commit f394676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_nebari/stages/infrastructure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class AzureInputVars(schema.Base):
tags: Dict[str, str] = {}
max_pods: Optional[int] = None
network_profile: Optional[Dict[str, str]] = None
azure_policy_enabled: bool = None
azure_policy_enabled: Optional[bool] = None
workload_identity_enabled: bool = False


Expand Down Expand Up @@ -374,6 +374,7 @@ class AzureProvider(schema.Base):
network_profile: Optional[Dict[str, str]] = None
max_pods: Optional[int] = None
workload_identity_enabled: bool = False
azure_policy_enabled: Optional[bool] = None

@model_validator(mode="before")
@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,5 @@ variable "authorized_ip_ranges" {
variable "azure_policy_enabled" {
description = "Enable Azure Policy"
type = bool
default = false
}

0 comments on commit f394676

Please sign in to comment.