Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Check role before changing #87

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kierenhamps
Copy link

Fixes #86

Uses 'fail_mode="continue"' in NsxClient instantiation to stop it from failing when a non 2xx status is returned from NSX.

Added a true/false return to the getter method that is then used to determine if a change is actually required.

Added logic to only make changes if necessary.

Kieren Hamps added 3 commits July 29, 2019 11:08
This also puts the initial get in a try block to stop failure due to
account not existing.

Without checking first, if attempting to create an account that already
exists, an exception occurs due to a 4xx return status from nsx.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nsx_manager_role fails if account already exists and state is 'present'.
1 participant