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