diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-04-14 12:35:26 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-04-15 12:03:51 +0300 |
commit | e0eb010bbe8fdb2ee4b5607d9a5288a078fcb1b0 (patch) | |
tree | e4bac1026c14a08dc64ee7af3c6a3cc3a2d34b0f /morphlib/exts/nfsboot.check | |
parent | c0ecac7662235a66adca1c483f1a170c8a479bd0 (diff) | |
download | morph-e0eb010bbe8fdb2ee4b5607d9a5288a078fcb1b0.tar.gz |
deploy: Share SSH connectivity check in the common writeexts.py code
Also, change it to log the real error message in morph.log before
raising a more general exception to the user.
Diffstat (limited to 'morphlib/exts/nfsboot.check')
-rwxr-xr-x | morphlib/exts/nfsboot.check | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/morphlib/exts/nfsboot.check b/morphlib/exts/nfsboot.check index f84f187f..806e560a 100755 --- a/morphlib/exts/nfsboot.check +++ b/morphlib/exts/nfsboot.check @@ -56,12 +56,7 @@ class NFSBootCheckExtension(morphlib.writeexts.WriteExtension): version_label, location)) def test_good_server(self, server): - # Can be ssh'ed into - try: - cliapp.ssh_runcmd('root@%s' % server, ['true']) - except cliapp.AppException: - raise cliapp.AppException('You are unable to ssh into server %s' - % server) + self.check_ssh_connectivity(server) # Is an NFS server try: |