Merge pull request #40225 from techhat/waitforfun

Add wait_for_fun() to set_tags()
This commit is contained in:
Mike Place 2017-03-22 12:15:34 -06:00 committed by GitHub
commit 11d2f5abec

View file

@ -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'],