Move more hypervisor strings into constants
authorIustin Pop <iustin@google.com>
Mon, 18 May 2009 19:15:41 +0000 (21:15 +0200)
committerIustin Pop <iustin@google.com>
Tue, 19 May 2009 13:21:55 +0000 (15:21 +0200)
commit835528afe1fe2457a2025b9de11167f57bc0f33c
tree9e4f6c0bf9a4f430d968f0ad9fa21b567f012054
parentd04aaa2f5268739ab69f96e993c09a7c0003c68c
Move more hypervisor strings into constants

This patch adds constants for the mouse and boot order strings; while
there are still some issues remaining, we're trying to cleanup hardcoded
strings from the hypervisors.

Since the formatting of frozensets is currently wrong, we also add an
utility function for this and change all the error messages to use it.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/constants.py
lib/hypervisor/hv_kvm.py
lib/hypervisor/hv_xen.py
lib/utils.py