[Kimchi-devel] [PATCH 1/4] VM template: add disk size error message
Mark Wu
wudxw at linux.vnet.ibm.com
Thu Apr 24 05:28:48 UTC 2014
On 04/23/2014 05:48 PM, Zhou Zheng Sheng wrote:
> The schema checker needs to report an error message when the disk size
> is less than 1GB. Currently this message is missing, so it reports an
> KeyError. This patch adds the error message.
>
> Signed-off-by: Zhou Zheng Sheng <zhshzhou at linux.vnet.ibm.com>
> ---
> src/kimchi/API.json | 6 ++++--
> src/kimchi/i18n.py | 1 +
> 2 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/src/kimchi/API.json b/src/kimchi/API.json
> index 3360a9c..f2192b6 100644
> --- a/src/kimchi/API.json
> +++ b/src/kimchi/API.json
> @@ -355,7 +355,8 @@
> }
> },
> "minItems": 1,
> - "uniqueItems": true
> + "uniqueItems": true,
> + "error": "KCHTMPL0022E"
> },
> "storagepool": {
> "description": "Location of the storage pool",
> @@ -508,7 +509,8 @@
> }
> },
> "minItems": 1,
> - "uniqueItems": true
> + "uniqueItems": true,
> + "error": "KCHTMPL0022E"
> },
> "storagepool": {
> "description": "Location of the storage pool",
> diff --git a/src/kimchi/i18n.py b/src/kimchi/i18n.py
> index 89bcd02..3d3abb4 100644
> --- a/src/kimchi/i18n.py
> +++ b/src/kimchi/i18n.py
> @@ -116,6 +116,7 @@ messages = {
> "KCHTMPL0019E": _("The volume: %(volume)s in not in storage pool %(pool)s"),
> "KCHTMPL0020E": _("Unable to create template due error: %(err)s"),
> "KCHTMPL0021E": _("Unable to delete template due error: %(err)s"),
> + "KCHTMPL0022E": _("Disk size must be greater than 1GB."),
>
> "KCHPOOL0001E": _("Storage pool %(name)s already exists"),
> "KCHPOOL0002E": _("Storage pool %(name)s does not exist"),
Reviewed-by: Mark Wu<wudxw at linux.vnet.ibm.com>
More information about the Kimchi-devel
mailing list