From 500f056b4ec37bd987c41db7e7a043526acd5d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ne=C4=8Das?= Date: Mon, 14 Oct 2019 13:57:13 +0200 Subject: [PATCH] ovirt_vm correct graphical port (#63379) --- lib/ansible/modules/cloud/ovirt/ovirt_vm.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_vm.py b/lib/ansible/modules/cloud/ovirt/ovirt_vm.py index 8974c7e46d7..eee42a59778 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_vm.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_vm.py @@ -783,6 +783,7 @@ options: protocol: description: - Graphical protocol, a list of I(spice), I(vnc), or both. + type: list disconnect_action: description: - "Returns the action that will take place when the graphic console(SPICE only) is disconnected. The options are:" @@ -1826,9 +1827,6 @@ class VmsModule(BaseModule): # If there are not gc add any gc to be added: protocol = graphical_console.get('protocol') - if isinstance(protocol, str): - protocol = [protocol] - current_protocols = [str(gc.protocol) for gc in graphical_consoles] if not current_protocols: if not self._module.check_mode: @@ -2437,7 +2435,7 @@ def main(): type='dict', options=dict( headless_mode=dict(type='bool'), - protocol=dict(), + protocol=dict(type='list'), disconnect_action=dict(type='str'), keyboard_layout=dict(type='str'), monitors=dict(type='int'),