Skip to content

Commit

Permalink
ipa-client: correct directory location by using constants instead
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rcritten authored and flo-renaud committed Oct 19, 2023
1 parent b6af3a4 commit a8a9230
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ipaclient/install/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a8a9230

Please sign in to comment.