From 0d9c9234642107d932dced2ee09f8869feffc676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ne=C4=8Das?= Date: Tue, 6 Nov 2018 14:48:45 +0100 Subject: [PATCH] ovirt require storage_domain if state is registred (#47423) --- lib/ansible/modules/cloud/ovirt/ovirt_vm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_vm.py b/lib/ansible/modules/cloud/ovirt/ovirt_vm.py index f77aa9375fa..a3677aa8231 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_vm.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_vm.py @@ -2054,6 +2054,9 @@ def main(): argument_spec=argument_spec, supports_check_mode=True, required_one_of=[['id', 'name']], + required_if=[ + ('state', 'registered', ['storage_domain']), + ] ) check_sdk(module)