mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #40225 from techhat/waitforfun
Add wait_for_fun() to set_tags()
This commit is contained in:
commit
11d2f5abec
1 changed files with 5 additions and 1 deletions
|
@ -2567,7 +2567,11 @@ def create(vm_=None, call=None):
|
|||
transport=__opts__['transport']
|
||||
)
|
||||
|
||||
set_tags(
|
||||
# Sometimes it takes a little longer than expected to set the tags, so
|
||||
# let's give it a few tries
|
||||
salt.utils.cloud.wait_for_fun(
|
||||
set_tags,
|
||||
timeout=30,
|
||||
vm_['name'],
|
||||
tags,
|
||||
instance_id=vm_['instance_id'],
|
||||
|
|
Loading…
Add table
Reference in a new issue