Blame SOURCES/0001-ureport-use-python3-to-get-consumerCertDir.patch

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