From 014d893bc15166ce27ccf70a5554bf212a075de0 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 7 Aug 2009 19:01:48 +0000 Subject: [PATCH] in geni_fields_to_pl_fields, when converting node fields check for 'hostname' not 'dns' --- sfa/plc/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" -- 2.43.0