We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b6a88f commit 670a789Copy full SHA for 670a789
ecs_deploy.py
@@ -188,7 +188,7 @@ def _run_parser(self):
188
sys.exit(1)
189
190
# loop for desired timeout
191
- timeout = self.args.get('timeout') or 90
+ timeout = self.int_or_none(self.args.get('timeout')) or 90
192
started_at = time.time()
193
while True:
194
self.running_tasks = self.client_fn('list_tasks')['taskArns']
@@ -213,6 +213,11 @@ def _run_parser(self):
213
else:
214
215
216
+ def _int_or_none(self, value):
217
+ if type(value) == str and value.isdigit():
218
+ return int(value)
219
+ return None
220
+
221
def _task_definition_name(self):
222
if self.args.get('task_definition'):
223
return self.args.get('task_definition')
0 commit comments