Skip to content

Commit

Permalink
fixing update account_enabled bug in azure_rm_aduser.py (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
haiyuazhang authored May 7, 2021
1 parent e5a5734 commit c3e6d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/azure_rm_aduser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3e6d59

Please sign in to comment.