From b8670a8626d828296ffb4ce1020c07ce893c6689 Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Fri, 12 Aug 2016 15:06:06 +0100 Subject: [PATCH] Document updating nested node attributes with CLI The `ironic node-update` command can update nested attributes like driver_info/deploy_kernel or properties/capabilities, but it wasn't clear how to do this from the help text. Change-Id: Ieca09ea0611cca2c637130198508de813b5930ef --- ironicclient/v1/node_shell.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ironicclient/v1/node_shell.py b/ironicclient/v1/node_shell.py index c3222e2..2aed1c8 100644 --- a/ironicclient/v1/node_shell.py +++ b/ironicclient/v1/node_shell.py @@ -271,7 +271,9 @@ def do_node_delete(cc, args): action='append', default=[], help="Attribute to add, replace, or remove. Can be specified " - "multiple times. For 'remove', only is necessary.") + "multiple times. For 'remove', only is necessary. " + "For nested attributes, separate the components with slashes, eg " + "'driver_info/deploy_kernel=uuid'.") def do_node_update(cc, args): """Update information about a registered node.""" patch = utils.args_array_to_patch(args.op, args.attributes[0])