summaryrefslogtreecommitdiff
path: root/nfsboot.check
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-03-24 16:24:49 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-03-24 16:29:22 +0000
commit5847e6d821748b386d68e8e982d8efcb3358e4e9 (patch)
tree917ef12457d8ddc500d10fb201dbdcaca8d54f8e /nfsboot.check
parent9faeac0a60b40256454e7049964898f3c749fd62 (diff)
downloaddefinitions-5847e6d821748b386d68e8e982d8efcb3358e4e9.tar.gz
Be consistent with nfsboot_root path
We were building it from a variable in some places and hardcoding it in others; now we build it from a variable everywhere.
Diffstat (limited to 'nfsboot.check')
-rwxr-xr-xnfsboot.check7
1 files changed, 4 insertions, 3 deletions
diff --git a/nfsboot.check b/nfsboot.check
index e240dd72..f84f187f 100755
--- a/nfsboot.check
+++ b/nfsboot.check
@@ -80,12 +80,13 @@ class NFSBootCheckExtension(morphlib.writeexts.WriteExtension):
'nfs server by systemd' % server)
# TFTP server exports /srv/nfsboot/tftp
+ tftp_root = os.path.join(self._nfsboot_root, 'tftp')
try:
cliapp.ssh_runcmd(
- 'root@%s' % server, ['test' , '-d', '/srv/nfsboot/tftp'])
+ 'root@%s' % server, ['test' , '-d', tftp_root])
except cliapp.AppException:
- raise cliapp.AppException('server %s does not export '
- '/srv/nfsboot/tftp' % server)
+ raise cliapp.AppException('server %s does not export %s' %
+ (tftp_root, server))
def version_exists(self, versioned_root, location):
try: