Blame SOURCES/0001-ureport-use-python3-to-get-consumerCertDir.patch
|
|
a6c909 |
From 8c00a86dddaf240d4a836a5e278190bcc51b0b66 Mon Sep 17 00:00:00 2001
|
|
|
a6c909 |
From: Matej Habrnal <mhabrnal@redhat.com>
|
|
|
a6c909 |
Date: Mon, 18 Jun 2018 14:51:23 +0200
|
|
|
a6c909 |
Subject: [PATCH] ureport: use python3 to get consumerCertDir
|
|
|
a6c909 |
|
|
|
a6c909 |
Related to #1592073
|
|
|
a6c909 |
|
|
|
a6c909 |
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
|
|
|
a6c909 |
---
|
|
|
a6c909 |
src/lib/ureport.c | 3 ++-
|
|
|
a6c909 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
a6c909 |
|
|
|
a6c909 |
diff --git a/src/lib/ureport.c b/src/lib/ureport.c
|
|
|
a6c909 |
index c32c948a..d2045f0f 100644
|
|
|
a6c909 |
--- a/src/lib/ureport.c
|
|
|
a6c909 |
+++ b/src/lib/ureport.c
|
|
|
a6c909 |
@@ -81,9 +81,10 @@ rhsm_config_get_consumer_cert_dir(void)
|
|
|
a6c909 |
return xstrdup(result);
|
|
|
a6c909 |
|
|
|
a6c909 |
result = run_in_shell_and_save_output(0,
|
|
|
a6c909 |
- "python -c \"from rhsm.config import initConfig; print(initConfig().get('rhsm', 'consumerCertDir'))\"",
|
|
|
a6c909 |
+ "python3 -c \"from rhsm.config import initConfig; print(initConfig().get('rhsm', 'consumerCertDir'))\"",
|
|
|
a6c909 |
NULL, NULL);
|
|
|
a6c909 |
|
|
|
a6c909 |
+
|
|
|
a6c909 |
/* run_in_shell_and_save_output always returns non-NULL */
|
|
|
a6c909 |
if (result[0] != '/')
|
|
|
a6c909 |
goto error;
|
|
|
a6c909 |
--
|
|
|
a6c909 |
2.17.0
|
|
|
a6c909 |
|