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

VMware: Rename results key to ansible_module_results #55038

Merged
merged 5 commits into from
Apr 10, 2019
Merged

VMware: Rename results key to ansible_module_results #55038

merged 5 commits into from
Apr 10, 2019

Conversation

wilmardo
Copy link
Contributor

@wilmardo wilmardo commented Apr 9, 2019

SUMMARY

Rename results key to ansible_module_results as shown when running the alpha version.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

vmware_guest_snapshot

ADDITIONAL INFORMATION
TASK [../win-cmdb-state-sync/ : Snapshot state = present] **********************************
 [WARNING]: Found internal 'results' key in module return, renamed to 'ansible_module_results'.

changed: [test]
TASK [../win-cmdb-state-sync/ : Snapshot state = present] ********************************
changed: [test -> localhost]

@ansibot
Copy link
Contributor

ansibot commented Apr 9, 2019

@ansibot
Copy link
Contributor

ansibot commented Apr 9, 2019

@wilmardo, just so you are aware we have a dedicated Working Group for vmware.
You can find other people interested in this in #ansible-vmware on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

click here for bot help

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. cloud community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. small_patch support:community This issue/PR relates to code supported by the Ansible community. vmware VMware community labels Apr 9, 2019
@Akasurde Akasurde changed the title Rename results key to ansible_module_results VMware: Rename results key to ansible_module_results Apr 9, 2019
@Akasurde Akasurde self-requested a review April 9, 2019 14:06
@Akasurde Akasurde self-assigned this Apr 9, 2019
@Akasurde
Copy link
Member

Akasurde commented Apr 9, 2019

@wilmardo Thanks for opening this PR. Could you please add a changelog entry here and porting guide here.

needs_info

@ansibot ansibot added needs_info This issue requires further information. Please answer any outstanding questions. and removed community_review In order to be merged, this PR must follow the community review workflow. needs_triage Needs a first human triage before being processed. labels Apr 9, 2019
@wilmardo
Copy link
Contributor Author

wilmardo commented Apr 9, 2019

@Akasurde Added a changelog entry but is this really a noteworthy change? It is just an internal variable, it does nothing for the end-user (module return stays the same).

@sivel
Copy link
Member

sivel commented Apr 9, 2019

Technically this change from the beginning is a deviation for the user. Before 2.8 we didn't rename the key. The warning at least lets the user know they need to adjust their playbooks.

I wouldn't blindly rename it to match what Ansible does. I'd give it a better name, like snapshot_results.

@Akasurde
Copy link
Member

Akasurde commented Apr 9, 2019

@wilmardo Yes, it is noteworthy change. Since vmware_* modules are community supported and does not guarantee backward compatibility. So, user will refer porting guides and documentation for these kind of changes.

@Akasurde
Copy link
Member

Akasurde commented Apr 9, 2019

@pdellaert @dericcrago @Im0 @ckotte @jeking3 @Tomorrow9 @alongchamps @adarobin @jillr @goneri Could you please review this ?

@ansibot
Copy link
Contributor

ansibot commented Apr 9, 2019

@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. docs This issue/PR relates to or includes documentation. and removed needs_info This issue requires further information. Please answer any outstanding questions. small_patch labels Apr 9, 2019
@ansibot ansibot added the support:core This issue/PR relates to code supported by the Ansible Engineering Team. label Apr 9, 2019
@wilmardo
Copy link
Contributor Author

wilmardo commented Apr 9, 2019

@sivel Good suggestion, updated!

it does nothing for the end-user (module return stays the same).

Excuses me for this, was confusing modules while testing this (saw nothing in the output, thought the key was for internal use only). I now 100% get why this is noteworthy change :)

Added an example to the documentation to clarify the change further.

@bcoca
Copy link
Member

bcoca commented Apr 9, 2019

As @sivel states, i added the warning + rename to indicate 'module is doing something wrong' so using the same key as in the warning is discouraged. lgtm with latest changes.

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Apr 10, 2019
@ansibot
Copy link
Contributor

ansibot commented Apr 10, 2019

@wilmardo This PR contains @ mentions in at least one commit message. Those mentions can cause cascading notifications through GitHub and need to be removed. Please squash or amend your commits to remove the mentions.

click here for bot help

@wilmardo
Copy link
Contributor Author

ready_for_review 🎉

@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Apr 10, 2019
@Akasurde Akasurde merged commit 877ce12 into ansible:devel Apr 10, 2019
@ansible ansible locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. cloud core_review In order to be merged, this PR must follow the core review workflow. docs This issue/PR relates to or includes documentation. module This issue/PR relates to a module. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. vmware VMware community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants