Fix usage of xm/xl for gnt-instance modify --new-primary
authorHelga Velroyen <helgav@google.com>
Fri, 25 Oct 2013 15:30:01 +0000 (17:30 +0200)
committerHelga Velroyen <helgav@google.com>
Mon, 28 Oct 2013 10:07:54 +0000 (11:07 +0100)
commit9c8f7bf4a45419c34a650c2f3af5e8cf0ef8eb72
tree00548905d388118fdda23799859603309f47de84
parenta49e7e0ddbdcb912b03709ff84f0d75913be85cf
Fix usage of xm/xl for gnt-instance modify --new-primary

This fixes issue 519. When calling 'gnt-instance modify
--new-primary', an exception was raised, because a
RPC call was not called with the right hypervisor
parameters which caused the backend function to crash,
because it could not determine which Xen toolstack (xm/xl)
was configured to be used.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
lib/cmdlib/instance.py