[Freeipa-devel] [PATCH 0135] Fix incorrect path in error message on sysrestore failure
Petr Spacek
pspacek at redhat.com
Fri Dec 13 07:49:14 UTC 2013
On 12.12.2013 15:02, Tomas Babej wrote:
> On sysrestore failure, user is prompted out to remove the sysrestore
> file. However, the path to the sysrestore file mentioned in the
> sentence is not correct.
>
> https://fedorahosted.org/freeipa/ticket/4080
>
> --
> Tomas Babej
>
>
> freeipa-tbabej-0135-Fix-incorrect-path-in-error-message-on-sysrestore-fa.patch
>
>
> From eac993e153c243b6359f57a7c051d3f373a9add0 Mon Sep 17 00:00:00 2001
> From: Tomas Babej<tbabej at redhat.com>
> Date: Thu, 12 Dec 2013 15:01:14 +0100
> Subject: [PATCH] Fix incorrect path in error message on sysrestore failure
>
> On sysrestore failure, user is prompted out to remove the sysrestore
> file. However, the path to the sysrestore file mentioned in the
> sentence is not correct.
>
> https://fedorahosted.org/freeipa/ticket/4080
> ---
> install/tools/ipa-server-install | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
> index 458ebba550d0fe7675bd874e23c7d730c53297e6..718fcee45550b9f65a17ecddc599fb4489f7ab3c 100755
> --- a/install/tools/ipa-server-install
> +++ b/install/tools/ipa-server-install
> @@ -534,7 +534,10 @@ def uninstall():
> rv = 1
>
> if has_state:
> - root_logger.error('Some installation state has not been restored.\nThis may cause re-installation to fail.\nIt should be safe to remove /var/lib/ipa/sysrestore.state but it may\nmean your system hasn\'t be restored to its pre-installation state.')
> + root_logger.error('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/sysrestore/sysrestore.state but it may\n'
(I know that this is bold ...) NACK.
A path used in the error message should be extracted/shared with the code. It
will prevent inconsistencies like this in the future.
Petr^2 Spacek
> + 'mean your system hasn\'t be restored to its pre-installation state.')
>
> # Note that this name will be wrong after the first uninstall.
> dirname = dsinstance.config_dirname(dsinstance.realm_to_serverid(api.env.realm))
More information about the Freeipa-devel
mailing list