summaryrefslogtreecommitdiffstats
path: root/base/common
diff options
context:
space:
mode:
Diffstat (limited to 'base/common')
-rw-r--r--base/common/python/pki/system.py13
-rw-r--r--base/common/src/com/netscape/certsrv/system/SystemConfigResource.java4
2 files changed, 14 insertions, 3 deletions
diff --git a/base/common/python/pki/system.py b/base/common/python/pki/system.py
index 7607578df..945c06407 100644
--- a/base/common/python/pki/system.py
+++ b/base/common/python/pki/system.py
@@ -267,7 +267,6 @@ class SystemConfigClient(object):
:param data: Configuration request containing all the input needed to
configure the subsystem
:type data: ConfigurationRequest
- :return: ConfigurationResponse -- response from configuration servlet.
"""
headers = {'Content-type': 'application/json',
'Accept': 'application/json'}
@@ -318,14 +317,22 @@ class SystemConfigClient(object):
"""
Contacts the server and invokes the Java configuration REST API to
finalize subsystem configuration.
-
- :return: ConfigurationResponse -- response from configuration servlet.
"""
headers = {'Content-type': 'application/json',
'Accept': 'application/json'}
self.connection.post('/rest/installer/finalizeConfiguration', None,
headers)
+ def cleanUp(self):
+ """
+ Contacts the server and invokes the Java configuration REST API to
+ clean up the configuration.
+ """
+ headers = {'Content-type': 'application/json',
+ 'Accept': 'application/json'}
+ self.connection.post('/rest/installer/cleanUp', None,
+ headers)
+
def getConfigurationResult(self):
"""
Contacts the server and invokes the Java configuration REST API to
diff --git a/base/common/src/com/netscape/certsrv/system/SystemConfigResource.java b/base/common/src/com/netscape/certsrv/system/SystemConfigResource.java
index 4835843c5..870664979 100644
--- a/base/common/src/com/netscape/certsrv/system/SystemConfigResource.java
+++ b/base/common/src/com/netscape/certsrv/system/SystemConfigResource.java
@@ -52,6 +52,10 @@ public interface SystemConfigResource {
public void finalizeConfiguration() throws Exception;
@POST
+ @Path("cleanUp")
+ public void cleanUp() throws Exception;
+
+ @POST
@Path("result")
public ConfigurationResponse getConfigurationResponse() throws Exception;
}