Add wait_for_fun() to set_tags()

This commit is contained in:
Joseph Hall 2017-03-22 10:50:44 -06:00
parent e9a4e8548b
commit 89b5010883

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