From: Guido Trotter Date: Wed, 22 May 2013 12:52:32 +0000 (+0200) Subject: Add debugging clause to _ExpandCheckDisks error X-Git-Tag: v2.7.0rc2~3 X-Git-Url: https://code.grnet.gr/git/ganeti-local/commitdiff_plain/ae549364c3472728e38d4196f9943a55edc738e2 Add debugging clause to _ExpandCheckDisks error This has been reported by users, so we should have the extra debugging available. Signed-off-by: Guido Trotter Reviewed-by: Michele Tartara --- diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 0adf0f1..5c4628e 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -7056,7 +7056,8 @@ def _ExpandCheckDisks(instance, disks): else: if not set(disks).issubset(instance.disks): raise errors.ProgrammerError("Can only act on disks belonging to the" - " target instance") + " target instance: expected a subset of %r," + " got %r" % (instance.disks, disks)) return disks