summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-11-25 12:42:02 +0100
committerTomas Babej <tbabej@redhat.com>2015-11-25 13:58:05 +0100
commit801672cc6618947f5cc4607910871e695587fcbf (patch)
treebd0b05cb689d99e1ae08a98c50151a5eb8df0c01
parent1904d7cc3ab33046428dbdcb7c6f521f9e083287 (diff)
Remove invalid error messages from topology upgrade
Return False does not mean that update failed, it mean that nothing has been updated, respectively ldap is up to date. https://fedorahosted.org/freeipa/ticket/5482 Reviewed-By: Tomas Babej <tbabej@redhat.com>
-rw-r--r--ipaserver/install/cainstance.py4
-rw-r--r--ipaserver/install/plugins/update_ca_topology.py5
2 files changed, 3 insertions, 6 deletions
diff --git a/ipaserver/install/cainstance.py b/ipaserver/install/cainstance.py
index 3632a3931..65f9e463d 100644
--- a/ipaserver/install/cainstance.py
+++ b/ipaserver/install/cainstance.py
@@ -595,9 +595,7 @@ class CAInstance(DogtagInstance):
'SUFFIX': api.env.basedn,
'FQDN': self.fqdn,
})
- rv = ld.update([paths.CA_TOPOLOGY_ULDIF])
- if not rv:
- raise RuntimeError("Failed to update CA topology configuration")
+ ld.update([paths.CA_TOPOLOGY_ULDIF])
def __disable_nonce(self):
# Turn off Nonces
diff --git a/ipaserver/install/plugins/update_ca_topology.py b/ipaserver/install/plugins/update_ca_topology.py
index ce4b5bc9a..311db3f0c 100644
--- a/ipaserver/install/plugins/update_ca_topology.py
+++ b/ipaserver/install/plugins/update_ca_topology.py
@@ -25,9 +25,8 @@ class update_ca_topology(Updater):
'SUFFIX': self.api.env.basedn,
'FQDN': self.api.env.host,
})
- rv = ld.update([paths.CA_TOPOLOGY_ULDIF])
- if not rv:
- self.log.error("Failed to update CA topology configuration")
+
+ ld.update([paths.CA_TOPOLOGY_ULDIF])
return False, []