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
(from parent 1:
083b6b0
)
fixed a bug when checking for invalid records
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 12 Apr 2010 18:36:04 +0000
(18:36 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 12 Apr 2010 18:36:04 +0000
(18:36 +0000)
sfa/server/interface.py
patch
|
blob
|
history
diff --git
a/sfa/server/interface.py
b/sfa/server/interface.py
index
7172ef9
..
d6dc5c4
100644
(file)
--- a/
sfa/server/interface.py
+++ b/
sfa/server/interface.py
@@
-166,9
+166,9
@@
class Interfaces(dict):
interfaces = [interfaces]
for interface in interfaces:
# make sure the required fields are present and not null
-
for key in required_fields
:
- if not interface.get(key):
- continue
+
if not all([interface.get(key) for key in required_fields])
:
+ continue
+
hrn, address, port = interface['hrn'], interface['addr'], interface['port']
url = 'http://%(address)s:%(port)s' % locals()
# check which client we should use