incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 3/4] CIMI: Fixed properties syntax for JSON to be Hash
Date Fri, 18 Nov 2011 13:32:32 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/spec/cimi/data/machine_configuration.json |    2 +-
 server/spec/cimi/data/machine_image.json         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/spec/cimi/data/machine_configuration.json b/server/spec/cimi/data/machine_configuration.json
index 7dbd0ae..f106a2d 100644
--- a/server/spec/cimi/data/machine_configuration.json
+++ b/server/spec/cimi/data/machine_configuration.json
@@ -8,7 +8,7 @@
   "disks" : [
     { "capacity": { "quantity": "1", "units": "terabyte" } }
   ],
-  "properties": [ { "architectore": "i386" } ],
+  "properties": { "architecture": "i386" },
   "operations": [
     { "rel": "edit",
       "href": "http://cimi.example.org/machine_configurations/1/edit" },
diff --git a/server/spec/cimi/data/machine_image.json b/server/spec/cimi/data/machine_image.json
index dbd7218..d338517 100644
--- a/server/spec/cimi/data/machine_image.json
+++ b/server/spec/cimi/data/machine_image.json
@@ -4,7 +4,7 @@
   "description": "Machine Image One",
   "created": "2011-11-14",
   "imageLocation": { "href": "nfs://cimi.example.com/images/1.img" },
-  "properties": [ { "status": "build"}, { "locked": "true" } ],
+  "properties": { "status": "BUILD", "locked": "true" },
   "operations": [
   { "rel": "edit",
     "href": "http://cimi.example.org/machine_images/1/edit" },
-- 
1.7.4.4


Mime
View raw message