Add VNC port range check (#34466)

This adds a check to ensure that both start and end of vnc range
is specified.
This commit is contained in:
Christopher Brown 2018-01-07 09:27:42 +00:00 committed by ansibot
parent 5edb800b6d
commit d2ccc13857

View file

@ -672,6 +672,9 @@ def main():
argument_spec=argument_spec, argument_spec=argument_spec,
required_if=[ required_if=[
('state', 'present', ['provider'])], ('state', 'present', ['provider'])],
required_together=[
['host_default_vnc_port_start', 'host_default_vnc_port_end']
],
) )
name = module.params['name'] name = module.params['name']