Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for diff and check mode for 3 modules #394

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

Conversation

hexmoose
Copy link

This PR adds support for diff and check modes for the following modules:

  • nsxt_policy_segment
  • nsxt_transport_zones
  • nsxt_uplink_profiles

This is an attempt to address #387 for the above modules.

Thanks for the review. I'll be happy to address any issues you find.

@vmwclabot
Copy link
Member

@hexmoose, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <[email protected]> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@hexmoose
Copy link
Author

I've addressed the dco-required issue. Please review when convenient.

@hexmoose hexmoose force-pushed the check-diff-mode-partial-support branch from ba0a69a to acf633f Compare February 10, 2022 17:00
@hexmoose
Copy link
Author

I've updated my commits to pull in the latest changes to master and fix some bugs we found internally with the diff behavior.

Jake added 2 commits September 23, 2022 09:22
Add check mode change reporting to:

- nsxt_policy_segment
- nsxt_transport_zones
- nsxt_uplink_profiles

This will allow them to report `changed` only if the underlying resource
has changed when using with `--check`.

Related Issue: vmware#387

Signed-off-by: Jake <[email protected]>
Add diff mode change reporting to:

- nsxt_policy_segment
- nsxt_transport_zones
- nsxt_uplink_profiles

This will allow them to report diffs when using with `--diff`.

This commit factors out the `check_for_update` function from
`nsxt_base_resource.py` into `common_utils` and adds functionality so it
can be used by multiple modules.

Related Issue: vmware#387

Signed-off-by: Jake <[email protected]>
@hexmoose hexmoose force-pushed the check-diff-mode-partial-support branch from acf633f to 60f5e1e Compare September 23, 2022 16:49
@hexmoose
Copy link
Author

I've updated to include the latest changes on master. Is anyone available to review this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants