Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1028 from rbradford/fix-1027
Browse files Browse the repository at this point in the history
Fix #1027 - workload yaml parsing
  • Loading branch information
Tim Pepper authored Jan 18, 2017
2 parents f16db23 + 055c2d8 commit de1a5da
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 6 additions & 1 deletion ciao-cli/examples/fedora_cloud.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
description: "Fedora VM no storage"
vm_type: qemu
fw_type: legacy
image_id: "73a86d7e-93c0-480e-9c41-ab42f69b7799"
defaults:
vcpus: 2
mem_mb: 512
disk_mb: 1024
cloud_init: fedora_vm.yaml
disks:
- source:
service: image
id: "73a86d7e-93c0-480e-9c41-ab42f69b7799"
ephemeral: true
bootable: true
6 changes: 5 additions & 1 deletion ciao-cli/examples/fedora_cloud_disk.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
description: "Fedora VM with attached empty storage"
vm_type: qemu
fw_type: legacy
image_id: "73a86d7e-93c0-480e-9c41-ab42f69b7799"
defaults:
vcpus: 2
mem_mb: 512
disk_mb: 1024
cloud_init: "fedora_vm.yaml"
disks:
- source:
service: image
id: "73a86d7e-93c0-480e-9c41-ab42f69b7799"
bootable: true
ephemeral: true
- size: 20
ephemeral: true
4 changes: 2 additions & 2 deletions ciao-cli/workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ func getCiaoWorkloadsResource() (string, error) {
}

type source struct {
Type types.SourceType `json:"service"`
ID string `json:"id"`
Type types.SourceType `yaml:"service"`
ID string `yaml:"id"`
}

type disk struct {
Expand Down

0 comments on commit de1a5da

Please sign in to comment.