From d5e24cf6f86e1efd667fad78e30e845e95913a09 Mon Sep 17 00:00:00 2001 From: Yuriy Zveryanskyy Date: Wed, 19 Oct 2016 11:11:47 +0300 Subject: [PATCH] Trivial fix of notifications doc Fix "properties" field in the examples and add small note. Change-Id: Id63e8d95fc7f2ba1cf956eff657b3a2d902d9f93 --- doc/source/dev/notifications.rst | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/doc/source/dev/notifications.rst b/doc/source/dev/notifications.rst index 9dfc6bd3b55..2afadf48662 100644 --- a/doc/source/dev/notifications.rst +++ b/doc/source/dev/notifications.rst @@ -190,7 +190,8 @@ Available notifications The notifications that ironic emits are described here. They are listed -(alphabetically) by service first, then by event_type. +(alphabetically) by service first, then by event_type. All examples below +show payloads before serialization to JSON. ------------------------------ ironic-conductor notifications @@ -239,10 +240,10 @@ ironic-conductor is attempting to change the node:: "name": None, "power_state": "power off", "properties": { - "memory_mb": "4096", - "cpu_arch": "x86_64', - "local_gb": "10", - "cpus": "8"}, + "memory_mb": 4096, + "cpu_arch": "x86_64", + "local_gb": 10, + "cpus": 8}, "provision_state": "available", "provision_updated_at": "2016-01-27T20:41:03+00:00", "resource_class": None, @@ -293,10 +294,10 @@ prior to the correction:: "name": None, "power_state": "power off", "properties": { - "memory_mb": "4096", - "cpu_arch": "x86_64', - "local_gb": "10", - "cpus": "8"}, + "memory_mb": 4096, + "cpu_arch": "x86_64", + "local_gb": 10, + "cpus": 8}, "provision_state": "available", "provision_updated_at": "2016-01-27T20:41:03+00:00", "resource_class": None,