Fix conditional logic for while loop
Fix conditional logic for while loop

[#99573316](https://www.pivotaltracker.com/story/show/99573316)

Signed-off-by: Aaron Hurley <6c541e38cb40b4360b80e64c308405691f38e38a@pivotal.io>

cloudfoundry-incubator/bosh-aws-cpi-release,jfuerth/bosh-aws-cpi-release,wcamarao/bosh-aws-cpi-release,sedouard/bosh-aws-cpi-release,tracyde/bosh-aws-cpi-release,ritazh/bosh-aws-cpi-release,wcamarao/bosh-aws-cpi-release,tracyde/bosh-aws-cpi-release,cloudfoundry-incubator/bosh-aws-cpi-release,ritazh/bosh-aws-cpi-release,cloudfoundry-incubator/bosh-aws-cpi-release,tracyde/bosh-aws-cpi-release,jfuerth/bosh-aws-cpi-release,sedouard/bosh-aws-cpi-release,ritazh/bosh-aws-cpi-release,jfuerth/bosh-aws-cpi-release,wcamarao/bosh-aws-cpi-release,sedouard/bosh-aws-cpi-release