URL: https://github.com/freeipa/freeipa/pull/2113 Author: flo-renaud Title: #2113: ipa client uninstall: clean the state store when restoring hostname Action: opened
PR body: """ 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 """
To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/2113/head:pr2113 git checkout pr2113