Skip to content

Commit

Permalink
added cdrom disk to windows templates
Browse files Browse the repository at this point in the history
In windows templates is cdrom validation. Because there was no cdrom in disks,
validator returns error when user creates windows vm. This PR adds cdrom in vm disks.

Signed-off-by: Karel Simon <[email protected]>
  • Loading branch information
ksimon1 committed Jun 10, 2020
1 parent f45b794 commit c010ce3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/win2k12r2-deprecated.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ metadata:
}, {
"name": "windows-cd-bus",
"path": "jsonpath::.spec.domain.devices.disks[*].cdrom.bus",
"valid": "jsonpath::.spec.domain.devices.disks[*].cdrom",
"rule": "enum",
"message": "cd bus has to be sata",
"values": ["sata"]
Expand Down
1 change: 1 addition & 0 deletions templates/windows.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ metadata:
}, {
"name": "windows-cd-bus",
"path": "jsonpath::.spec.domain.devices.disks[*].cdrom.bus",
"valid": "jsonpath::.spec.domain.devices.disks[*].cdrom",
"rule": "enum",
"message": "cd bus has to be sata",
"values": ["sata"]
Expand Down
1 change: 1 addition & 0 deletions templates/windows10.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ metadata:
}, {
"name": "windows-cd-bus",
"path": "jsonpath::.spec.domain.devices.disks[*].cdrom.bus",
"valid": "jsonpath::.spec.domain.devices.disks[*].cdrom",
"rule": "enum",
"message": "cd bus has to be sata",
"values": ["sata"]
Expand Down

0 comments on commit c010ce3

Please sign in to comment.