Skip to content

Commit f719a1e

Browse files
committed
Fixup
1 parent 5eea6e8 commit f719a1e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/cloud/user_credentials.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,15 @@ func (c *client) ResolveProject(user *User) error {
187187
p := c.cs.Project.NewListProjectsParams()
188188
p.SetListall(true)
189189
p.SetDomainid(user.Domain.ID)
190+
p.SetAccount(user.Account.Name)
190191
p.SetName(user.Project.Name)
191192
setIfNotEmpty(user.Project.ID, p.SetId)
192193
resp, retErr := c.cs.Project.ListProjects(p)
193194
if retErr != nil {
194195
c.customMetrics.EvaluateErrorAndIncrementAcsReconciliationErrorCounter(retErr)
195196
return retErr
196197
} else if resp.Count == 0 {
197-
return errors.Errorf("could not find account %s", user.Project.Name)
198+
return errors.Errorf("could not find project %s", user.Project.Name)
198199
} else if resp.Count != 1 {
199200
return errors.Errorf("expected 1 Project with name %s in domain ID %s, but got %d",
200201
user.Project.Name, user.Domain.ID, resp.Count)

test/e2e/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ stringData:
5151
secret-key: XXXX
5252
api-url: http://1.2.3.4:8080/client/api
5353
verify-ssl: "false"
54-
project-id: <project id>
5554
```
5655
This will be applied to the kind cluster that hosts CAPI/CAPC for the test, allowing CAPC to access the cluster.
57-
The api-key and secret-key can be found or generated at Home > Accounts > admin > Users > admin of the ACS management UI. `verify-ssl` is an optional flag and its default value is true. CAPC skips verifying the host SSL certificates when the flag is set to false. `project-id` is also optional and is used to specify the project id to be used for the k8s cluster.
56+
The api-key and secret-key can be found or generated at Home > Accounts > admin > Users > admin of the ACS management UI. `verify-ssl` is an optional flag and its default value is true. CAPC skips verifying the host SSL certificates when the flag is set to false.
5857

5958
### Running the e2e tests
6059

0 commit comments

Comments
 (0)