Add vmFolder option to deploy_ova module #526
Open
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.
Description
This merge request introduces a new option,
vmFolder
, to thedeploy_ova
module. The addition allows users to specify a folder within the ESX cluster where the desired VM should be created.The already used
folder
parameter is leveraged. When the user specifies it, the OVFTool parameter--vmFolder
is added to theovf_base_options
array.Changes Made
folder
parameter in thedeploy_ova
module.ovf_command
with the--vmFolder
option if thefolder
parameter is provided.vi_string
. This seemed to be a bug. It didn't work if the parameter was specified.Testing
deploy_ova
module correctly includes the--vmFolder
option when thefolder
parameter is specified.folder
parameter.Thank you for considering this merge request. Please let me know if there are any questions or further improvements needed.