laradji / zabbix

Zabbix chef cookbook
Apache License 2.0
91 stars 125 forks source link

Check length of host group before erroring. Fix race condition #214

Open tophercullen opened 9 years ago

tophercullen commented 9 years ago

When multiple hosts run at the same time with a new host group, a race condition occurs. All the hosts query and find that the host group does not exist. They then all try to create the host group. Only one will succeed, the others will get an api error. If the group gets created/exists, the subuquent call to get the host group will have one result.

tophercullen commented 9 years ago

Fixes #215