From 509764ecf28d013866c1ebfea2a933debdaca326 Mon Sep 17 00:00:00 2001 From: haiyuan zhang Date: Fri, 7 May 2021 15:01:29 +0800 Subject: [PATCH] fixing update account_enabled bug in azure_rm_aduser.py --- plugins/modules/azure_rm_aduser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/azure_rm_aduser.py b/plugins/modules/azure_rm_aduser.py index 21808d6c2..28dd39bfd 100644 --- a/plugins/modules/azure_rm_aduser.py +++ b/plugins/modules/azure_rm_aduser.py @@ -310,7 +310,7 @@ def exec_module(self, **kwargs): should_update = True if should_update or self.user_type and ad_user.user_type != self.user_type: should_update = True - if should_update or self.account_enabled and ad_user.account_enabled != self.account_enabled: + if should_update or self.account_enabled is not None and ad_user.account_enabled != self.account_enabled: should_update = True if should_update or self.display_name and ad_user.display_name != self.display_name: should_update = True