ipa-client: correct directory location by using constants instead

If something in the client sysrestore.state wasn't removed by
the installer a warning message was printed with an incorrect
location. Fix this by using constants instead.

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Rob Crittenden 2023-10-17 14:59:53 -04:00 committed by Florence Blanc-Renaud
parent b6af3a43c7
commit a8a923033b

View File

@ -3697,9 +3697,12 @@ def uninstall(options):
logger.warning(
'Some installation state has not been restored.\n'
'This may cause re-installation to fail.\n'
'It should be safe to remove /var/lib/ipa-client/sysrestore.state '
'It should be safe to remove %s '
'but it may\n mean your system hasn\'t been restored '
'to its pre-installation state.')
'to its pre-installation state.',
os.path.join(paths.IPA_CLIENT_SYSRESTORE,
sysrestore.SYSRESTORE_STATEFILE)
)
# Remove the IPA configuration file
remove_file(paths.IPA_DEFAULT_CONF)