(#3287) Avoid an extra EC2 API call by duplicating some code.
(#3287) Avoid an extra EC2 API call by duplicating some code.

djw8605/htcondor,djw8605/htcondor,zhangzhehust/htcondor,djw8605/htcondor,zhangzhehust/htcondor,htcondor/htcondor,htcondor/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,neurodebian/htcondor,htcondor/htcondor,zhangzhehust/htcondor,djw8605/htcondor,htcondor/htcondor,neurodebian/htcondor,djw8605/htcondor,zhangzhehust/htcondor,htcondor/htcondor,djw8605/htcondor,htcondor/htcondor,zhangzhehust/htcondor,htcondor/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,djw8605/htcondor,neurodebian/htcondor,neurodebian/htcondor,djw8605/htcondor,neurodebian/htcondor,neurodebian/htcondor,htcondor/htcondor,zhangzhehust/htcondor,djw8605/htcondor,neurodebian/htcondor,zhangzhehust/htcondor