--- a/pvl/hosts/dhcp.py Thu Feb 26 15:42:01 2015 +0200
+++ b/pvl/hosts/dhcp.py Thu Feb 26 15:53:57 2015 +0200
@@ -17,14 +17,14 @@
if not host.boot:
next_server = filename = None
+ elif host.boot.startswith('/'):
+ next_server = None
+ filename = host.boot[1:]
+ elif host.boot.endswith(':'):
+ next_server = host.boot[:-1]
+ filename = None
elif ':' in host.boot :
next_server, filename = host.boot.split(':', 1)
- elif host.boot.startswith('/') :
- next_server = None
- filename = host.boot
- elif host.boot.endswith(':') :
- next_server = host.boot
- filename = None
else :
raise HostError(host, "invalid boot={host.boot}".format(host=host))