Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
This is preparing the pymomi module utils to be made public. The main change is centralizing the argument spec. This is related to the doc fragment update in #86
pyvmomi and rest both have 95% of the same args and the differences can be resolved without impacting the end user. In this change, I removed the cluster/datacenter from the common arg spec since they are re-defined in all of the modules that need them anyway. I also added the protocol arg to the spec. Since its used by the rest api but does nothing for pymomi, we can safely add it to all modules and not need to maintain two copies of this arg spec
There should be no change in functionality.
Rest API modules still use their own arg spec, but they should be updated to use this one later on
ISSUE TYPE
COMPONENT NAME
module_utils/_vmware