Explorar el Código

fixed the exception import

Golubov hace 2 años
padre
commit
c48335bb6d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      coriolis/providers/replicator.py

+ 2 - 2
coriolis/providers/replicator.py

@@ -16,7 +16,6 @@ import requests
 
 
 from coriolis import exception
 from coriolis import exception
 from coriolis import utils
 from coriolis import utils
-from coriolis.exception import NotAuthorized
 
 
 LOG = logging.getLogger(__name__)
 LOG = logging.getLogger(__name__)
 
 
@@ -476,7 +475,8 @@ class Replicator(object):
             ssh.connect(**args)
             ssh.connect(**args)
             return ssh
             return ssh
         except paramiko.ssh_exception.SSHException as ex:
         except paramiko.ssh_exception.SSHException as ex:
-            raise NotAuthorized("Failed to setup SSH client: %s" % str(ex))
+            raise exception.CoriolisException(
+                "Failed to setup SSH client: %s" % str(ex))
 
 
     def _parse_source_ssh_conn_info(self, conn_info):
     def _parse_source_ssh_conn_info(self, conn_info):
         # if we get valid SSH connection info we can
         # if we get valid SSH connection info we can