Changed the loop logic
Merge branch 'master' of github.com:Zanfa/custom-opsworks-cookbooks