Skip to content

Commit

Permalink
Remove nonsense condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dulek committed Oct 26, 2022
1 parent 2340869 commit 8128274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/services/compute/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (s *Service) createInstanceImpl(eventObject runtime.Object, openStackCluste
accessIPv4 := ""
portList := []servers.Network{}

if instanceSpec.Subnet != "" && accessIPv4 == "" {
if instanceSpec.Subnet != "" {
return nil, fmt.Errorf("no ports with fixed IPs found on Subnet %q", instanceSpec.Subnet)
}

Expand Down

0 comments on commit 8128274

Please sign in to comment.