fixed a an error.
This commit is contained in:
parent
58289ed90f
commit
0f8a2d3f0c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue