Skip to content

Commit

Permalink
fix: bad logic in domain lookup
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Goldstein <doug.goldstein@rackspace.com>
  • Loading branch information
cardoe committed Apr 24, 2024
1 parent e1dd0c8 commit ce7415e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func loadDomainId(service *gophercloud.ServiceClient, domainName string) (string
return domId, fmt.Errorf("unable to fetch domains in rackspace account: %v", listErr)
}

if domId != "" {
if domId == "" {
return domId, fmt.Errorf("failed to find domain `%s`", domainName)
}

Expand Down

0 comments on commit ce7415e

Please sign in to comment.