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 standard vmware_argument_spec, fix issue #1977 #1978

Conversation

ihumster
Copy link
Collaborator

SUMMARY

Fix #1977 . Add standard vmware_argument_spec() function.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

vsphere_file

@ihumster ihumster requested a review from mariolenz January 22, 2024 20:36
Copy link
Collaborator

@mariolenz mariolenz left a comment

Choose a reason for hiding this comment

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

It looks like this is a breaking change. Playbooks using host wouldn't work anymore.

Maybe we should start with changing the argument spec (and documentation) from host with an alias of hostname to hostname with an alias of host and deprecate the latter. And then we could start using vmware_argument_spec().

Your changes look OK but as far as I can see they would be breakin.

@ihumster
Copy link
Collaborator Author

ihumster commented Jan 23, 2024

For backward compatibility purposes, you can add the alias host to the vmware_argument_spec itself for the argument hostname

Copy link
Collaborator

@mariolenz mariolenz left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @ihumster!

Copy link

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/5dbcb932481047d4ac428c9c9c779775

✔️ ansible-tox-linters SUCCESS in 9m 42s
✔️ build-ansible-collection SUCCESS in 8m 02s
✔️ ansible-galaxy-importer SUCCESS in 3m 53s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 42062ca into ansible-collections:main Feb 12, 2024
13 checks passed
@ihumster ihumster deleted the add-standart-vmware_spec-func-#1977 branch February 12, 2024 14:17
@rgadwagner
Copy link

Apparently the "host" deprecation just fell off? My builds are failing using "host" at this point.

If it has, the documentation for VSPHERE_FILE needs to be updated, all examples are still showing "host". I'll add an issue.

softwarefactory-project-zuul bot pushed a commit that referenced this pull request Jul 12, 2024
Fixes #2110
SUMMARY
Follow-up to #1978 fixing the examples in the documentation.
ISSUE TYPE

Docs Pull Request

COMPONENT NAME
vsphere_file
cc @rgadwagner

Reviewed-by: Alexander Nikitin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vsphere_file: Add support for vSphere credentials via environment variables
3 participants