summaryrefslogtreecommitdiffstats
path: root/fuel/deploy/ssh_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'fuel/deploy/ssh_client.py')
-rw-r--r--fuel/deploy/ssh_client.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/fuel/deploy/ssh_client.py b/fuel/deploy/ssh_client.py
index 0f6b8c7ea..df780961f 100644
--- a/fuel/deploy/ssh_client.py
+++ b/fuel/deploy/ssh_client.py
@@ -9,13 +9,14 @@
import paramiko
-import common
import scp
-TIMEOUT = 600
-log = common.log
-err = common.err
+from common import (
+ log,
+ err,
+)
+TIMEOUT = 600
class SSHClient(object):
@@ -58,7 +59,7 @@ class SSHClient(object):
if check:
if error:
self.close()
- err(error)
+ raise Exception(error)
else:
return response
return response, error