From 0f8a2d3f0c851d0547c3ed2265ef4c0ffbeda32c Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Thu, 10 Nov 2016 21:16:39 -0500 Subject: [PATCH] fixed a an error. --- def/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/def/task.go b/def/task.go index 19ed98c..c7326c6 100644 --- a/def/task.go +++ b/def/task.go @@ -42,7 +42,7 @@ func (tsk *Task) UpdateHost(new_host string) bool { // Validation is_correct_host := false for _, existing_host := range constants.Hosts { - if host == existing_host { + if new_host == existing_host { is_correct_host = true } }