From d7c8fdbd79c83ac5ffc70e037a3ea0381a543b7b Mon Sep 17 00:00:00 2001 From: Yawei Wang Date: Wed, 1 Nov 2017 14:01:59 +0800 Subject: [PATCH] add check mode for acs delete (#32063) --- lib/ansible/modules/cloud/azure/azure_rm_acs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_acs.py b/lib/ansible/modules/cloud/azure/azure_rm_acs.py index 444848a3b5a..409fe0ce4fe 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_acs.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_acs.py @@ -619,6 +619,8 @@ class AzureRMContainerService(AzureRMModuleBase): self.log("Creation / Update done") elif self.state == 'absent': + if self.check_mode: + return self.results self.delete_acs() self.log("ACS instance deleted")