Skip to content

Commit

Permalink
fix failed rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
OrrBG committed Dec 26, 2024
1 parent 77e9060 commit 0a698a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/93-bugfix-vm_name-required
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- info - Made vm_name variable required only when state is set to present in content_template module
4 changes: 2 additions & 2 deletions plugins/modules/content_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
description:
- The name of the VM to be used to create template.
type: str
required: true
required: only if state is set to present
host:
description:
- Host onto which the virtual machine template should be placed.
Expand Down Expand Up @@ -206,7 +206,7 @@ def main():
argument_spec.update(
template=dict(type='str', required=True),
library=dict(type='str', required=True),
vm_name=dict(type='str', required=True),
vm_name=dict(type='str', required=(argument_spec['state'] == 'present')),
host=dict(type='str'),
cluster=dict(type='str'),
resource_pool=dict(type='str'),
Expand Down

0 comments on commit 0a698a7

Please sign in to comment.