| 318 | self._appspec_dict = appspec_obj |
| 319 | |
| 320 | def wait_for_deploy_success(self, id, wait_min): |
| 321 | waiter = self._client.get_waiter("deployment_successful") |
| 322 | |
| 323 | if wait_min is not None and wait_min > MAX_WAIT_MIN: |
| 324 | wait_min = MAX_WAIT_MIN |
| 325 | |
| 326 | elif wait_min is None or wait_min < 30: |
| 327 | wait_min = 30 |
| 328 | |
| 329 | delay_sec = DEFAULT_DELAY_SEC |
| 330 | max_attempts = (wait_min * 60) / delay_sec |
| 331 | config = {'Delay': delay_sec, 'MaxAttempts': max_attempts} |
| 332 | |
| 333 | self._show_deploy_wait_msg(id, wait_min) |
| 334 | waiter.wait(deploymentId=id, WaiterConfig=config) |
| 335 | |
| 336 | def _show_deploy_wait_msg(self, id, wait_min): |
| 337 | sys.stdout.write( |