From e9bbb3782b6ac0405e740ffe7b62da8aeee2a7b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saulius=20Grigali=C5=ABnas?= Date: Fri, 18 May 2018 10:24:56 +0300 Subject: [PATCH] Use task_info variable name There is no such variable `task` in scope. Should have been `task_info` as everywhere else in this method. --- discoverecs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discoverecs.py b/discoverecs.py index 031684f..9cc24f3 100644 --- a/discoverecs.py +++ b/discoverecs.py @@ -288,7 +288,7 @@ def task_info_to_targets(task_info): ecs_cluster_name=ecs_cluster_name, ec2_instance_id=ec2_instance_id)] else: - log(task['taskArn'] + ' does not have a networkBinding') + log(task_info.task['taskArn'] + ' does not have a networkBinding') return [] class Main: