ovirt_vm correct graphical port (#63379)

This commit is contained in:
Martin Nečas 2019-10-14 13:57:13 +02:00 committed by ansibot
parent 2fe2a12440
commit 500f056b4e

View file

@ -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'),