Amend wait_for_template logic
Amend wait_for_template logic

cloudfoundry-community/logsearch-boshrelease,cloudfoundry-community/logsearch-boshrelease,cloudfoundry-community/logsearch-boshrelease,cloudfoundry-community/logsearch-boshrelease