[Kimchi-devel] [PATCH] Issue #369: Fix config_dir assignment
Sheldon
shaohef at linux.vnet.ibm.com
Fri May 9 03:59:19 UTC 2014
Reviewed-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
On 05/09/2014 03:50 AM, Aline Manera wrote:
> From: Aline Manera <alinefm at br.ibm.com>
>
> In proxy.py, the config_dir was only initialized in a 'if' statement and
> used outside it.
> So if the SSL certificate and key were received as parameters, config_dir
> was undefined.
> Fix it.
>
> Signed-off-by: Aline Manera <alinefm at br.ibm.com>
> ---
> src/kimchi/proxy.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/kimchi/proxy.py b/src/kimchi/proxy.py
> index 7a12bfd..1ccbbcc 100644
> --- a/src/kimchi/proxy.py
> +++ b/src/kimchi/proxy.py
> @@ -57,9 +57,9 @@ def _create_proxy_config(p_port, k_port, p_ssl_port, cert, key):
> except KeyError:
> user_proxy = 'www-data'
>
> + config_dir = paths.conf_dir
> # No certificates specified by the user
> if not cert or not key:
> - config_dir = paths.conf_dir
> cert = '%s/kimchi-cert.pem' % config_dir
> key = '%s/kimchi-key.pem' % config_dir
> # create cert files if they don't exist
--
Thanks and best regards!
Sheldon Feng(冯少合)<shaohef at linux.vnet.ibm.com>
IBM Linux Technology Center
More information about the Kimchi-devel
mailing list