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:
834c2d0
)
Remove: getCredential only if necessary to contact peers
author
Loic Baron
<loic.baron@lip6.fr>
Wed, 29 Mar 2017 10:37:20 +0000
(12:37 +0200)
committer
Loic Baron
<loic.baron@lip6.fr>
Wed, 29 Mar 2017 10:37:20 +0000
(12:37 +0200)
sfa/managers/registry_manager.py
patch
|
blob
|
history
diff --git
a/sfa/managers/registry_manager.py
b/sfa/managers/registry_manager.py
index
0646be7
..
e3cd0ee
100644
(file)
--- a/
sfa/managers/registry_manager.py
+++ b/
sfa/managers/registry_manager.py
@@
-583,7
+583,6
@@
class RegistryManager:
if type not in ['slice', 'user', 'node', 'authority']:
raise UnknownSfaType(type)
- credential = api.getCredential()
registries = api.registries
# Try to remove the object from the PLCDB of federated agg.
@@
-593,6
+592,7
@@
class RegistryManager:
for registry in registries:
if registry not in [api.hrn]:
try:
+ credential = api.getCredential()
result = registries[registry].remove_peer_object(
credential, record, origin_hrn)
except: