Skip to content

Commit

Permalink
Reverse search order for ide disks for cloud-init allocation. (#56)
Browse files Browse the repository at this point in the history
* Reverse search order for ide disks for cloud-init allocation.

* Update finalize_template_config_test to look for ide0 for cloud_init.
  • Loading branch information
jeff-voight authored Dec 21, 2021
1 parent d2ff526 commit e68ae2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builder/proxmox/common/step_finalize_template_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (s *stepFinalizeTemplateConfig) Run(ctx context.Context, state multistep.St
}
}
if cloudInitStoragePool != "" {
ideControllers := []string{"ide3", "ide2", "ide1", "ide0"}
ideControllers := []string{"ide0", "ide1", "ide2", "ide3"}
cloudInitAttached := false
// find a free ide controller
for _, controller := range ideControllers {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func TestTemplateFinalize(t *testing.T) {
expectedVMConfig: map[string]interface{}{
"name": "my-template",
"description": "some-description",
"ide3": "ceph01:cloudinit",
"ide0": "ceph01:cloudinit",
},
expectedAction: multistep.ActionContinue,
},
Expand Down

0 comments on commit e68ae2f

Please sign in to comment.