We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abae024 commit 155613bCopy full SHA for 155613b
pkg/cloud/user_credentials.go
@@ -140,6 +140,9 @@ func (c *client) ResolveAccount(account *Account) error {
140
resp, retErr := c.cs.Account.ListAccounts(p)
141
if retErr != nil {
142
return retErr
143
+ } else if resp.Count == 0 {
144
+ return errors.Errorf("could not find account %s in domain ID %s",
145
+ account.Name, account.Domain.ID)
146
} else if resp.Count != 1 {
147
return errors.Errorf("expected 1 Account with account name %s in domain ID %s, but got %d",
148
account.Name, account.Domain.ID, resp.Count)
0 commit comments