[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[et-mgmt-tools] [PATCH] Fix get_graphics()



# HG changeset patch
# User john levon sun com
# Date 1228851589 28800
# Node ID 3a48e2d3594b3e7e1d24147f3325ab6024557504
# Parent  419fb59763dc86b8f6abf26e4fb7ba6f7ba54182
Fix get_graphics()

The key needs to be 'enabled' not 'enabled '.

Signed-off-by: John Levon <john levon sun com>

diff --git a/virtinst/Guest.py b/virtinst/Guest.py
--- a/virtinst/Guest.py
+++ b/virtinst/Guest.py
@@ -717,7 +717,7 @@ class Guest(object):
     # Deprecated: Should set guest.graphics_dev = VirtualGraphics(...)
     def get_graphics(self):
         if self._graphics_dev is None:
-            return { "enabled " : False }
+            return { "enabled" : False }
         return { "enabled" : True, "type" : self._graphics_dev, \
                  "keymap"  : self._graphics_dev.keymap}
     def set_graphics(self, val):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]