From c20a19ed964a2cd27470801795b0efd853b4b148 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Tue, 10 Jan 2012 12:58:27 +0100 Subject: [PATCH] Fix wrong variable name Commit bc5d0215 added support for disk params, but due to copy-paste it tries to enforce the hvparams into disk params values, leading to: $ gnt-cluster modify -H kvm:initrd_path=/boot/initrd-2.6-kvmU Parameter Error: Unknown parameter 'initrd_path' Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Andrea Spadaccini <spadaccio@google.com> --- lib/client/gnt_cluster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py index d50d33f56..5087ffd7f 100644 --- a/lib/client/gnt_cluster.py +++ b/lib/client/gnt_cluster.py @@ -1,7 +1,7 @@ # # -# Copyright (C) 2006, 2007, 2010, 2011 Google Inc. +# Copyright (C) 2006, 2007, 2010, 2011, 2012 Google Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -971,7 +971,7 @@ def SetClusterParams(opts, args): diskparams = dict(opts.diskparams) - for dt_params in hvparams.values(): + for dt_params in diskparams.values(): utils.ForceDictType(dt_params, constants.DISK_DT_TYPES) beparams = opts.beparams -- GitLab