Skip to content

Commit

Permalink
Make firewall rules optional in machine response. (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Feb 15, 2024
1 parent ae33d76 commit c9e4944
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/metal-api/internal/service/v1/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type MachineAllocation struct {
Role string `json:"role" enum:"machine|firewall" description:"the role of the machine"`
VPN *MachineVPN `json:"vpn" description:"vpn connection info for machine" optional:"true"`
AllocationUUID string `json:"allocationuuid" description:"a unique identifier for this machine allocation, can be used to distinguish between machine allocations over time."`
FirewallRules *FirewallRules `json:"firewall_rules" description:"a set of firewall rules to apply"`
FirewallRules *FirewallRules `json:"firewall_rules,omitempty" description:"a set of firewall rules to apply" optional:"true"`
}

type FirewallRules struct {
Expand Down
1 change: 0 additions & 1 deletion spec/metal-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -2176,7 +2176,6 @@
"allocationuuid",
"created",
"creator",
"firewall_rules",
"hostname",
"name",
"networks",
Expand Down

0 comments on commit c9e4944

Please sign in to comment.