From d2ccc13857435836e73fc0277d00603ca06ea8a9 Mon Sep 17 00:00:00 2001 From: Christopher Brown Date: Sun, 7 Jan 2018 09:27:42 +0000 Subject: [PATCH] Add VNC port range check (#34466) This adds a check to ensure that both start and end of vnc range is specified. --- .../modules/remote_management/manageiq/manageiq_provider.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/remote_management/manageiq/manageiq_provider.py b/lib/ansible/modules/remote_management/manageiq/manageiq_provider.py index c04ea149701..ebddffb91d6 100644 --- a/lib/ansible/modules/remote_management/manageiq/manageiq_provider.py +++ b/lib/ansible/modules/remote_management/manageiq/manageiq_provider.py @@ -672,6 +672,9 @@ def main(): argument_spec=argument_spec, required_if=[ ('state', 'present', ['provider'])], + required_together=[ + ['host_default_vnc_port_start', 'host_default_vnc_port_end'] + ], ) name = module.params['name']