From d37340748e49a765bcb2de8558804a8255fef8c9 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 11 Sep 2009 02:00:03 +0000 Subject: [PATCH] if the record exist dont try to add it, update it --- PLC/SFA.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PLC/SFA.py b/PLC/SFA.py index ce097f9..883f570 100644 --- 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 -- 2.43.0