Check for running instances when disabling templates
authorHelga Velroyen <helgav@google.com>
Wed, 9 Oct 2013 09:24:03 +0000 (11:24 +0200)
committerHelga Velroyen <helgav@google.com>
Fri, 11 Oct 2013 11:13:35 +0000 (13:13 +0200)
commitc2e984e29f3a950d7575f395954d94ed25f11c09
treedd0e24ac335b8845302ddffe88a7e8450bc452bc
parente8c86ab1f1200bc2d14c47e50f20dfcd21e0ff36
Check for running instances when disabling templates

This patch introduces a function to be used in
'gnt-cluster modify' when disabling a couple of disk
templates. It checks whether there are still instances
running that use these templates.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
lib/cmdlib/cluster.py