From: Tony Mack Date: Fri, 7 Aug 2009 19:01:48 +0000 (+0000) Subject: in geni_fields_to_pl_fields, when converting node fields check for 'hostname' not... X-Git-Tag: sfa-0.9-1~111 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=014d893bc15166ce27ccf70a5554bf212a075de0;p=sfa.git in geni_fields_to_pl_fields, when converting node fields check for 'hostname' not 'dns' --- diff --git a/sfa/plc/api.py b/sfa/plc/api.py index 1906be48..4d4055b9 100644 --- a/sfa/plc/api.py +++ b/sfa/plc/api.py @@ -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"