freeipa/ipaplatform/redhat
Florence Blanc-Renaud e32cfd14a9 ipa client uninstall: clean the state store when restoring hostname
When ipa client was installed with the --hostname= option, it stores
[network]
hostname = (current hostname)
in /var/lib/ipa-client/sysrestore/sysrestore.state and changes the hostname
from (current hostname) to the value provided in --hostname.

During uninstall, the previous hostname is restored but the entry does
not get removed from sysrestore.state. As the uninstaller checks if all
entries from sysrestore.state have been restored, it warns that some
state has not been restored.

The fix calls statestore.restore_state() instead of statestore.get_state()
as this method also clears the entry.

https://pagure.io/freeipa/issue/7620

Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2018-07-06 17:40:55 +02:00
..
__init__.py Split off generic Red Hat-like platform code from Fedora platform code 2014-10-09 15:37:24 +02:00
authconfig.py Installer: configure authselect with-sudo 2018-06-19 08:51:02 +02:00
constants.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
paths.py Migration from authconfig to authselect 2018-04-27 14:01:33 +02:00
services.py Fedora 29 renamed fedora-domainname.service 2018-06-15 08:30:55 +02:00
tasks.py ipa client uninstall: clean the state store when restoring hostname 2018-07-06 17:40:55 +02:00