Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Update etcd-manager/cmd/etcd-manager/main.go
Browse files Browse the repository at this point in the history
have to see this in my ide

Co-authored-by: Ciprian Hacman <[email protected]>
  • Loading branch information
ederst and hakman authored Mar 14, 2023
1 parent 736f4b6 commit ad85f72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etcd-manager/cmd/etcd-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,16 +207,16 @@ func RunEtcdManager(o *EtcdManagerOptions) error {
return fmt.Errorf("backup-store is required")
}

var err error
var networkCIDR *net.IPNet
if o.NetworkCIDR != "" {
if o.VolumeProviderID != "openstack" {
return fmt.Errorf("network-cidr is only supported with provider 'openstack'")
}

var err error
_, networkCIDR, err = net.ParseCIDR(o.NetworkCIDR)
if err != nil {
return fmt.Errorf("network-cidr %s", err)
return fmt.Errorf("parsing network-cidr: %w", err)
}
}

Expand Down

0 comments on commit ad85f72

Please sign in to comment.