Skip to content

Commit

Permalink
kubevirt: also add wait_sleep (ansible#61020)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmazur authored and anas-shami committed Sep 23, 2019
1 parent 97ee639 commit bf92c46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ansible/module_utils/kubevirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
'merge_type': {'type': 'list', 'choices': ['json', 'merge', 'strategic-merge']},
'wait': {'type': 'bool', 'default': True},
'wait_timeout': {'type': 'int', 'default': 120},
'wait_sleep': {'type': 'int', 'default': 5},
}
VM_COMMON_ARG_SPEC.update(VM_SPEC_DEF_ARG_SPEC)

Expand Down
5 changes: 5 additions & 0 deletions lib/ansible/plugins/doc_fragments/kubevirt_common_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ class ModuleDocFragment(object):
- The amount of time in seconds the module should wait for the resource to get into desired state.
type: int
default: 120
wait_sleep:
description:
- Number of seconds to sleep between checks.
default: 5
version_added: "2.9"
memory:
description:
- The amount of memory to be requested by virtual machine.
Expand Down

0 comments on commit bf92c46

Please sign in to comment.