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

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