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:
47dbc61
)
skip registries with incomplete connection info
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 24 Mar 2009 14:00:42 +0000
(14:00 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 24 Mar 2009 14:00:42 +0000
(14:00 +0000)
geni/registry.py
patch
|
blob
|
history
diff --git
a/geni/registry.py
b/geni/registry.py
index
b5fb908
..
eb7e599
100644
(file)
--- a/
geni/registry.py
+++ b/
geni/registry.py
@@
-200,6
+200,8
@@
class Registry(GeniServer):
if isinstance(registries, list):
for registry in registries:
# create xmlrpc connection using GeniClient
+ if not hrn or not address or not port:
+ continue
hrn, address, port = registry['hrn'], registry['addr'], registry['port']
url = 'http://%(address)s:%(port)s' % locals()
self.registries[hrn] = GeniClient(url, self.key_file, self.cert_file)