gnt-instance rename: Fix bug and rename params
authorManuel Franceschini <livewire@google.com>
Wed, 28 Jul 2010 14:58:19 +0000 (16:58 +0200)
committerManuel Franceschini <livewire@google.com>
Wed, 28 Jul 2010 15:40:32 +0000 (17:40 +0200)
commit3fe11ba3ce04c8dbe3c7a3c433ab4a21c1878070
tree92c3834aae7cda59d9963b44399a6d6ea7486364
parent452913ed98c31566cc3bbe2bbc6595e1dc9bbbef
gnt-instance rename: Fix bug and rename params

This patch fixes a bug when gnt-instance rename was invoked with
--no-name-check. It renames the internal variables to be consistent with
the ones in equivalent instance add code. Furthermore it checks whether
and instance rename is invoked with --no-name-check but without
--no-ip-check and throws an exception if so.

Signed-off-by: Manuel Franceschini <livewire@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/cmdlib.py
lib/opcodes.py
scripts/gnt-instance