Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kian99 committed Sep 5, 2023
1 parent 4d3f1a7 commit cfa2d85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/jimm/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ func (j *JIMM) ImportModel(ctx context.Context, u *dbmodel.User, controllerName
errors.E(op, err)
}
if len(allCredentials) == 0 {
return errors.E(op, errors.CodeNotFound, fmt.Sprintf("Failed to find cloud credential for user %s on cloud %s", u.Username, cloudTag.Id()))
return errors.E(op, errors.CodeNotFound, fmt.Sprintf("Failed to find cloud credential for user %s on cloud %s", ownerUser.Username, cloudTag.Id()))
}
cloudCredential := allCredentials[0]

Expand Down
2 changes: 1 addition & 1 deletion internal/jimm/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ func TestImportModel(t *testing.T) {
Valid: true,
},
Owner: dbmodel.User{
Username: "alice@external", // Owner will switch to the user doing the import
Username: "alice@external",
DisplayName: "Alice",
ControllerAccess: "superuser",
},
Expand Down

0 comments on commit cfa2d85

Please sign in to comment.