URL: https://github.com/freeipa/freeipa/pull/1165
Author: felipevolpone
 Title: #1165: [Backport][ipa-4-5] kra-install: better warning message
Action: opened

PR body:
This PR was opened automatically because PR #1162 was pushed to master and 
backport to ipa-4-5 is required.

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1165/head:pr1165
git checkout pr1165
From f82f77b3a0c13059652f1b856a0f99b6860830c5 Mon Sep 17 00:00:00 2001
From: Alexander Koksharov <akoks...@redhat.com>
Date: Tue, 17 Oct 2017 12:29:43 +0200
Subject: [PATCH] kra-install: better warning message

User would like to see CA installation command in KRA installation
warning message.

This makes warning message similar to other installer messages where it
does suggests a command to run.

 ipaserver/install/ipa_kra_install.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ipaserver/install/ipa_kra_install.py b/ipaserver/install/ipa_kra_install.py
index 8369d2f408..3e08f4da94 100644
--- a/ipaserver/install/ipa_kra_install.py
+++ b/ipaserver/install/ipa_kra_install.py
@@ -147,7 +147,8 @@ def run(self):
         if not cainstance.is_ca_installed_locally():
             raise RuntimeError("Dogtag CA is not installed. "
-                               "Please install the CA first")
+                               "Please install a CA first with the "
+                               "`ipa-ca-install` command.")
         # check if KRA is not already installed
         _kra = krainstance.KRAInstance(api)
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org

Reply via email to