From 56c2b701dd51987e28e16cd8ab072afb0194e615 Mon Sep 17 00:00:00 2001 From: v1tal3 Date: Wed, 18 Nov 2020 09:22:16 -0500 Subject: [PATCH] Bugfix for issue #722 Bugfix for issue #722. This fixes disabling user accounts in an Org when no other changes are made to a user account. --- pyvcloud/vcd/org.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyvcloud/vcd/org.py b/pyvcloud/vcd/org.py index 0ffa5ccd1..bc306b2fd 100644 --- a/pyvcloud/vcd/org.py +++ b/pyvcloud/vcd/org.py @@ -1017,7 +1017,7 @@ def update_user(self, user_name, is_enabled=None, role_name=None, updated_user["Password"] = E.Password(password) user["Password"] = updated_user["Password"] - if is_enabled or role_name or password: + if is_enabled is not None or role_name or password: return self.client.put_resource( user.get('href'), updated_user, EntityType.USER.value)