From a8a923033bf764b744496199d8f86ff7a7fe183e Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 17 Oct 2023 14:59:53 -0400 Subject: [PATCH] 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 Reviewed-By: Florence Blanc-Renaud --- ipaclient/install/client.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ipaclient/install/client.py b/ipaclient/install/client.py index 01a5f2339c8..7e3adee351a 100644 --- a/ipaclient/install/client.py +++ b/ipaclient/install/client.py @@ -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)