service: Allow service to clean up its state

Fixes: https://pagure.io/freeipa/issue/8094
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Stanislav Levin authored and Alexander Bokovoy committed 2020-08-31 09:42:31 +03:00
1 parent 53b341f94b
commit 8716881fc4
1 file changed
+3
+3
View File
@@ -533,6 +533,9 @@ class Service:
def get_state(self, key):
return self.sstore.get_state(self.service_name, key)
def delete_state(self, key):
self.sstore.delete_state(self.service_name, key)
def print_msg(self, message):
print_msg(message, self.output_fd)