Skip to content

Commit

Permalink
Get keystone service project
Browse files Browse the repository at this point in the history
  • Loading branch information
fao89 committed Oct 23, 2024
1 parent 0a7f395 commit 30e5a7c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion controllers/heat_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1077,13 +1077,19 @@ func (r *HeatReconciler) ensureStackDomain(
return ctrl.Result{}, err
}

// Get service project
project, err := os.GetProject(r.Log, "service", "default")
if err != nil {
return ctrl.Result{}, err
}

// Create Heat user
userID, err := os.CreateUser(
r.Log,
openstack.User{
Name: heat.StackDomainAdminUsername,
Password: password,
ProjectID: "service",
ProjectID: project.ID,
DomainID: domainID,
})
if err != nil {
Expand Down

0 comments on commit 30e5a7c

Please sign in to comment.