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 72fd85c commit 61ed30bCopy full SHA for 61ed30b
modules/openstack/user.go
@@ -95,6 +95,8 @@ func (o *OpenStack) GetUser(
95
96
if len(allUsers) == 0 {
97
return nil, fmt.Errorf(fmt.Sprintf("%s %s", userName, UserNotFound))
98
+ } else if len(allUsers) > 1 {
99
+ return nil, fmt.Errorf(fmt.Sprintf("multiple users named \"%s\" found", userName))
100
}
101
102
return &allUsers[0], nil
0 commit comments