You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2011/11/18 14:32:32 UTC

[PATCH core 3/4] CIMI: Fixed properties syntax for JSON to be Hash

From: Michal Fojtik <mf...@redhat.com>


Signed-off-by: Michal fojtik <mf...@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


Re: [PATCH core 3/4] CIMI: Fixed properties syntax for JSON to be Hash

Posted by Tong Li <li...@us.ibm.com>.
OK
Tong Li
Emerging Technologies & Standards
Building 501/B205
litong01@us.ibm.com

mfojtik@redhat.com wrote on 11/18/2011 08:32:32 AM:

> From: mfojtik@redhat.com
> To: deltacloud-dev@incubator.apache.org
> Date: 11/18/2011 08:32 AM
> Subject: [PATCH core 3/4] CIMI: Fixed properties syntax for JSON to be
Hash
>
> From: Michal Fojtik <mf...@redhat.com>
>
>
> Signed-off-by: Michal fojtik <mf...@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
>