More idiomatic for loop
More idiomatic for loop

[#112812779]

Signed-off-by: Maria Ntalla <db175d1e767b01513ca4f1524312ca03f02099ed@pivotal.io>

gu-bin/bosh-agent,cloudfoundry/bosh-agent,mattcui/bosh-agent,gu-bin/bosh-agent,cloudfoundry/bosh-agent,mattcui/bosh-agent,gu-bin/bosh-agent,mattcui/bosh-agent