git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
if the record exist dont try to add it, update it
[plcapi.git]
/
PLC
/
SFA.py
diff --git
a/PLC/SFA.py
b/PLC/SFA.py
index
ce097f9
..
883f570
100644
(file)
--- a/
PLC/SFA.py
+++ b/
PLC/SFA.py
@@
-154,6
+154,8
@@
class SFA:
# add the record to sfa
if not self.sfa_record_exists(object['hrn'], type):
self.registry.register(self.credential, record)
+ else:
+ self.registry.update(self.credential, record)
@wrap_exception
@required_packages_imported