Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Commit

Permalink
Remove unnecessary fix
Browse files Browse the repository at this point in the history
Proper fix in cylc#2432.
  • Loading branch information
matthewrmshin committed Oct 19, 2017
1 parent d6e396a commit 6f11c67
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/cylc/gui/gscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"""Implement "cylc gscan"."""

import re
from socket import gethostbyname_ex
import threading
from time import sleep, time

Expand Down Expand Up @@ -762,10 +761,9 @@ def __init__(self, window, hosts, suite_treemodel, suite_treeview,
name_pattern=None, owner_pattern=None):
self.window = window
if hosts:
self.hosts = [gethostbyname_ex(host)[0] for host in hosts]
self.hosts = hosts
elif owner_pattern is not None:
hosts = GLOBAL_CFG.get(["suite host scanning", "hosts"])
self.hosts = [gethostbyname_ex(host)[0] for host in hosts]
self.hosts = GLOBAL_CFG.get(["suite host scanning", "hosts"])
else:
self.hosts = []
self.comms_timeout = comms_timeout
Expand Down Expand Up @@ -901,7 +899,7 @@ def run(self):
def set_hosts(self, new_hosts):
"""Set new hosts."""
del self.hosts[:]
self.hosts.extend(gethostbyname_ex(host)[0] for host in new_hosts)
self.hosts.extend(new_hosts)
self.set_update_listing()

def update(self):
Expand Down

0 comments on commit 6f11c67

Please sign in to comment.