From 4cef067d41156977cc03572bf009924b56484141 Mon Sep 17 00:00:00 2001 From: yatinkarel <yatin.karel@nectechnologies.in> Date: Thu, 26 Mar 2015 12:05:57 +0530 Subject: [PATCH] Corrected help for nova boot when attaching block device When adding block device with swap format, size is in MB and for other formats it is in GB, so help is modified to show correct description Change-Id: I0472f2a86ed2a2a651d7bbb08976e8813fb72041 Closes-Bug: #1407383 --- novaclient/v2/shell.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py index 7e3a53100..33653a121 100644 --- a/novaclient/v2/shell.py +++ b/novaclient/v2/shell.py @@ -435,8 +435,9 @@ def _boot(cs, args): "device=name of the device (e.g. vda, xda, ...; " "if omitted, hypervisor driver chooses suitable device " "depending on selected bus), " - "size=size of the block device in GB (if omitted, " - "hypervisor driver calculates size), " + "size=size of the block device in MB(for swap) and in " + "GB(for other formats) " + "(if omitted, hypervisor driver calculates size), " "format=device will be formatted (e.g. swap, ntfs, ...; optional), " "bootindex=integer used for ordering the boot disks " "(for image backed instances it is equal to 0, "