in geni_fields_to_pl_fields, when converting node fields check for 'hostname' not...
authorTony Mack <tmack@cs.princeton.edu>
Fri, 7 Aug 2009 19:01:48 +0000 (19:01 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 7 Aug 2009 19:01:48 +0000 (19:01 +0000)
sfa/plc/api.py

index 1906be4..4d4055b 100644 (file)
@@ -261,9 +261,9 @@ class GeniAPI:
 
         elif type == "node":
             if not "hostname" in pl_record:
-                if not "dns" in record:
-                    raise MissingGeniInfo("dns")
-                pl_record["hostname"] = record["dns"]
+                if not "hostname" in record:
+                    raise MissingGeniInfo("hostname")
+                pl_record["hostname"] = record["hostname"]
             if not "model" in pl_record:
                 pl_record["model"] = "geni"