From e5c0958dbb858e3a346eb62da87e82ff5c2a7db7 Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Thu, 12 Oct 2017 14:49:38 +0200 Subject: [PATCH] ovirt_templates: Fix exlusive parameter (#31470) --- lib/ansible/modules/cloud/ovirt/ovirt_templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_templates.py b/lib/ansible/modules/cloud/ovirt/ovirt_templates.py index 3c8f544459..e17492f475 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_templates.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_templates.py @@ -303,7 +303,7 @@ def main(): ret = templates_module.action( entity=template, action='export', - action_condition=lambda t: export_template is None, + action_condition=lambda t: export_template is None or module.params['exclusive'], wait_condition=lambda t: t is not None, post_action=templates_module.post_export_action, storage_domain=otypes.StorageDomain(id=export_service.get().id),