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

Fix vmware_guest_serial_port to have idempotency #358

Merged

Conversation

sky-joker
Copy link
Collaborator

@sky-joker sky-joker commented Aug 23, 2020

SUMMARY

This PR is to fix vmware_guest_serial_port to have idempotency.
Also, fix some documents.
fixes: #343

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

plugins/modules/vmware_guest_serial_port.py

ADDITIONAL INFORMATION

tested on vCenter/ESXi 7.0

@ansibullbot
Copy link

@ansibullbot ansibullbot added WIP Work in progress affects_2.10 bug This issue/PR relates to a bug integration tests/integration module module needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI needs_triage Needs a first human triage before being processed. stale_ci CI is older than 7 days, rerun before merging tests tests labels Aug 23, 2020
@sky-joker sky-joker changed the title [WIP] Fix vmware_guest_serial_port to have idempotency Fix vmware_guest_serial_port to have idempotency Aug 23, 2020
@ansibullbot ansibullbot added community_review and removed WIP Work in progress labels Aug 23, 2020
add changelog file

update integration test

update integration test
- choices:
- client
- server'
- ' - C(no_rx_loss) (bool): Required when I(backing_type=pipe).
Enables optimized data transfer over the pipe.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VMware's default seems to be False. Can we set it False by default too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your comment!
I'll work on it :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the no_rx_loss default value to False.

@@ -0,0 +1,2 @@
minor_changes:
- vmware_guest_serial_port - fixed to have idepomtency(https://github.com/ansible-collections/vmware/pull/358).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to be sure everybody understand, I would avoid the world idempotency ( not idepomtency :-) ) and just say: ensure we can run the module two times in a row without unexpected side effect.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your advice.
I modified the changelog file that way!

@goneri goneri removed the needs_triage Needs a first human triage before being processed. label Aug 25, 2020
@goneri
Copy link
Member

goneri commented Aug 26, 2020

Thank you @sky-joker!

@goneri goneri added the gate label Aug 26, 2020
The required_if-unknown-key error occurs caused is I set wronged first key(alias) in the required_if list.
@ansible-zuul ansible-zuul bot removed the gate label Aug 27, 2020
@goneri goneri added the gate label Aug 27, 2020
@ansible-zuul ansible-zuul bot merged commit 304b96f into ansible-collections:main Aug 27, 2020
@sky-joker
Copy link
Collaborator Author

Thank you @goneri :)

@sky-joker sky-joker deleted the fix_vmware_guest_serial_port branch August 29, 2020 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects_2.10 bug This issue/PR relates to a bug community_review has_issue integration tests/integration module module needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI stale_ci CI is older than 7 days, rerun before merging tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vmware_guest_serial_port not idempotent
3 participants