ovirt_vm correct graphical port (#63379)
This commit is contained in:
parent
2fe2a12440
commit
500f056b4e
1 changed files with 2 additions and 4 deletions
|
@ -783,6 +783,7 @@ options:
|
||||||
protocol:
|
protocol:
|
||||||
description:
|
description:
|
||||||
- Graphical protocol, a list of I(spice), I(vnc), or both.
|
- Graphical protocol, a list of I(spice), I(vnc), or both.
|
||||||
|
type: list
|
||||||
disconnect_action:
|
disconnect_action:
|
||||||
description:
|
description:
|
||||||
- "Returns the action that will take place when the graphic console(SPICE only) is disconnected. The options are:"
|
- "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:
|
# If there are not gc add any gc to be added:
|
||||||
protocol = graphical_console.get('protocol')
|
protocol = graphical_console.get('protocol')
|
||||||
if isinstance(protocol, str):
|
|
||||||
protocol = [protocol]
|
|
||||||
|
|
||||||
current_protocols = [str(gc.protocol) for gc in graphical_consoles]
|
current_protocols = [str(gc.protocol) for gc in graphical_consoles]
|
||||||
if not current_protocols:
|
if not current_protocols:
|
||||||
if not self._module.check_mode:
|
if not self._module.check_mode:
|
||||||
|
@ -2437,7 +2435,7 @@ def main():
|
||||||
type='dict',
|
type='dict',
|
||||||
options=dict(
|
options=dict(
|
||||||
headless_mode=dict(type='bool'),
|
headless_mode=dict(type='bool'),
|
||||||
protocol=dict(),
|
protocol=dict(type='list'),
|
||||||
disconnect_action=dict(type='str'),
|
disconnect_action=dict(type='str'),
|
||||||
keyboard_layout=dict(type='str'),
|
keyboard_layout=dict(type='str'),
|
||||||
monitors=dict(type='int'),
|
monitors=dict(type='int'),
|
||||||
|
|
Loading…
Reference in a new issue