git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a287683
)
in geni_fields_to_pl_fields, when converting node fields check for 'hostname' not...
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 7 Aug 2009 19:01:48 +0000
(19:01 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 7 Aug 2009 19:01:48 +0000
(19:01 +0000)
sfa/plc/api.py
patch
|
blob
|
history
diff --git
a/sfa/plc/api.py
b/sfa/plc/api.py
index
1906be4
..
4d4055b
100644
(file)
--- 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"