hv_xen._GetCommand: retrieve xen command from hvparams
authorHelga Velroyen <helgav@google.com>
Fri, 24 May 2013 11:10:02 +0000 (13:10 +0200)
committerHelga Velroyen <helgav@google.com>
Wed, 12 Jun 2013 07:17:05 +0000 (09:17 +0200)
commit51a95d00e394e4403bceedf2fe5a6762a421e504
tree26e61e1911c6ab8cc33690ad3f191da5e380b4f2
parent3eb073a65b1e0c8f9bae2303fa4ab4e73765f7f0
hv_xen._GetCommand: retrieve xen command from hvparams

This patch adds a (so far optional) hvparams parameter
to the '_GetCommand' function. This dictionary is used
to retrieve the xen command (xm or xl). It is optional
for now to make the refactoring possible without breaking
everything at once.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
lib/hypervisor/hv_xen.py
test/py/ganeti.hypervisor.hv_xen_unittest.py