pvl.hots: fix Host.build Unknown host field error
authorTero Marttila <terom@paivola.fi>
Tue, 17 Dec 2013 17:31:41 +0200
changeset 306 a1bdb4499c7a
parent 305 e85c95e757eb
child 307 cc645622024e
pvl.hots: fix Host.build Unknown host field error
pvl/hosts.py
--- a/pvl/hosts.py	Tue Dec 17 12:55:53 2013 +0200
+++ b/pvl/hosts.py	Tue Dec 17 17:31:41 2013 +0200
@@ -76,7 +76,7 @@
                     for eth in value.split() :
                         ethernet[len(ethernet)] = eth
             else :
-                raise ValueError("Unknown host attr: %s=%s" % (attr, value))
+                raise ValueError("%s: Unknown host field: %s=%s" % (host, field, value))
         
         if domain is None :
             domain = options.hosts_domain