|
@@ -62,7 +62,7 @@ class Host(Thread):
|
|
|
|
|
|
def sshcommand(self, command):
|
|
|
if self.up:
|
|
|
- ssh = subprocess.Popen( ["ssh", "%s" % self.hostname, command], shell = False, stdout = subprocess.PIPE, stderr = subprocess.PIPE , universal_newlines=True)
|
|
|
+ ssh = subprocess.Popen( ["ssh", "%s" % self.hostname, command], shell = False, stdout = subprocess.PIPE, stderr = subprocess.PIPE, universal_newlines=True)
|
|
|
return ssh
|
|
|
else:
|
|
|
print(self.hostname + ' is not up.')
|