-
Notifications
You must be signed in to change notification settings - Fork 187
Fix disabling user accounts in an Org under certain conditions #723
base: master
Are you sure you want to change the base?
Conversation
Bugfix for issue vmware-archive#722. This fixes disabling user accounts in an Org when no other changes are made to a user account.
Can this be reviewed and merged? |
Bump |
@rocknes Can you please review? |
Bump @rocknes @ltimothy7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @matt852)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @matt852)
@ltimothy7 is there anything else you're waiting on me for to get this merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @matt852)
@ltimothy7 can we get this merged in please? |
To help us process your pull request efficiently, please include:
Bugfix for issue #722. This fixes disabling user accounts in an Org when no other changes are made to a user account.
documentation. If the pull request contains multiple commits with
detailed messages, refer to those instead
Details are included in submitted issue #722 (pasted below):
There is a bug that prevents disabling a user in an Org. I'll be submitting a PR for this shortly.
File: pyvcloud/vcd/org.py
Line: 1019
Current line:
if is_enabled or role_name or password:
Issue: If the only modification being made to a user is to disable the account, this will ALWAYS skip past this IF statement, as "is_enabled" is a boolean and evaluates to False. This works for enabling users, as "is_enabled" evaluates to True and enters the IF statement.
This change is