Skip to content

Commit

Permalink
Merge pull request #427 from civo/region-bug
Browse files Browse the repository at this point in the history
Add region in create resources
  • Loading branch information
uzaxirr authored Jun 5, 2024
2 parents 9993915 + d89ddd0 commit 7d8cf94
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/firewall/firewall_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ var firewallCreateCmd = &cobra.Command{
Name: args[0],
NetworkID: defaultNetwork.ID,
CreateRules: &createRules,
Region: client.Region,
})
if err != nil {
utility.Error("%s", err)
Expand Down
1 change: 1 addition & 0 deletions cmd/firewall/firewall_rule_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ var firewallRuleCreateCmd = &cobra.Command{
Cidr: strings.Split(cidr, ","),
Label: label,
Action: action,
Region: client.Region,
}

// Check the rule address, if the input is different
Expand Down
1 change: 1 addition & 0 deletions cmd/kfcluster/kfcluster_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ var kfcCreateCmd = &cobra.Command{
NetworkID: network.ID,
Size: size,
FirewallID: firewallID,
Region: client.Region,
}

kfc, err := client.CreateKfCluster(kfCluster)
Expand Down
1 change: 1 addition & 0 deletions cmd/network/network_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var networkCreateCmd = &cobra.Command{
Label: args[0],
CIDRv4: cidrV4,
NameserversV4: nameserversV4,
Region: client.Region,
}

network, err := client.CreateNetwork(networkConfig)
Expand Down

0 comments on commit 7d8cf94

Please sign in to comment.