---
snake/machinedb.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/snake/machinedb.py b/snake/machinedb.py
index 7b145a6..efdef71 100644
--- a/snake/machinedb.py
+++ b/snake/machinedb.py
@@ -94,7 +94,7 @@ def update(id, hwinfo):
raise ValueError("A machine with the supplied fingerprints %s already
exists" % hwinfo["fingerprints"])
# Store user-supplied values into Machine() object
- for opt in ["id", "bootargs", "nickname",
"fingerprints", "arch"]:
+ for opt in ["id", "bootargs", "nickname",
"fingerprints", "arch", "ksdata"]:
if hwinfo.has_key(opt):
setattr(m, opt, hwinfo.get(opt))
@@ -103,7 +103,7 @@ def update(id, hwinfo):
m.config.add_section("general")
# update cfg object
- for opt in ["id", "bootargs", "nickname",
"fingerprints", "arch"]:
+ for opt in ["id", "bootargs", "nickname",
"fingerprints", "arch", "ksdata"]:
if isinstance(getattr(m,opt), list):
m.config.set("general", opt, " ".join(getattr(m, opt)))
else:
@@ -144,6 +144,7 @@ def listmachines(**args):
id: machine id
arch: architecture
nickname: machine name
+ fingerprint: one or more machine fingerprints
...and basically any other attribute of the Machine object.
'''
machinelist = _loadmachines()
--
1.5.4.5