fixed a an error.

This commit is contained in:
Pradyumna Kaushik 2016-11-10 21:16:39 -05:00 committed by Renan DelValle
parent 58289ed90f
commit 0f8a2d3f0c

View file

@ -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
}
}