X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=xenserver%2Fusr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py;h=6ecf4784f9d9cda8f5f279a638b318266a38a46d;hb=5a9e7099ebd720c9b9aa4b308f75645b33b1b15b;hp=99dd15d8da52bdd5d7ca958c0443b305ee0b108c;hpb=c69ee87c10818267f991236201150b1fa51ae519;p=openvswitch diff --git a/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py b/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py index 99dd15d8..6ecf4784 100644 --- a/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py +++ b/xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py @@ -79,7 +79,8 @@ class VSwitchConfig: @staticmethod def Get(action): try: - output = ShellPipe([vsctl, "-vANY:console:emer", action]).Stdout() + arg = [vsctl, "-vANY:console:emer"] + action.split() + output = ShellPipe(arg).Stdout() except StandardError, e: XSLogError("config retrieval error: " + str(e)) return "" @@ -283,11 +284,13 @@ class XSFeatureVSwitch: if dbController == "": dbController = Lang("") inPane.AddStatusField(Lang("Controller (config)", 20), dbController) - controller = VSwitchConfig.Get("get-controller") + controller = VSwitchConfig.Get("get Open_vSwitch . managers") + controller = controller.strip('[]"') + if controller == "": controller = Lang("") elif controller[0:4] == "ssl:": - controller = controller[4:] + controller = controller.split(':')[1] inPane.AddStatusField(Lang("Controller (in-use)", 20), controller) inPane.NewLine()