4a46eb
From 96aece42291332f9347a437fc7ed6d809c710bc9 Mon Sep 17 00:00:00 2001
4a46eb
From: Eduardo Otubo <otubo@redhat.com>
4a46eb
Date: Mon, 24 Aug 2020 14:22:52 -0400
4a46eb
Subject: [PATCH 2/3] Changing notation of subp call
4a46eb
4a46eb
RH-Author: Eduardo Otubo <otubo@redhat.com>
4a46eb
Message-id: <20200824142252.16298-1-otubo@redhat.com>
4a46eb
Patchwork-id: 98215
4a46eb
O-Subject: [RHEL-7.9.z/RHEL-8.2.1/RHEL-8.3.0 cloud-init PATCH] Changing notation of subp call
4a46eb
Bugzilla: 1839619
4a46eb
RH-Acked-by: Cathy Avery <cavery@redhat.com>
4a46eb
RH-Acked-by: Mohammed Gamal <mgamal@redhat.com>
4a46eb
4a46eb
The previous patch was applied upstream on top of a refactoring that moves subp
4a46eb
to its own module (3c551f6e, Move subp into its own module. (#416), release
4a46eb
20.2).
4a46eb
4a46eb
Downstream we're not there yet, in order to avoid applying the above
4a46eb
commit and add a huge refactoring, I'll just change this call and we can
4a46eb
benefit of this changes in a future rebase.
4a46eb
4a46eb
x-downstream-only: yes
4a46eb
4a46eb
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
4a46eb
Signed-off-by: Jon Maloy <jmaloy.redhat.com>
4a46eb
---
4a46eb
 cloudinit/sources/helpers/vmware/imc/guestcust_util.py | 4 ++--
4a46eb
 1 file changed, 2 insertions(+), 2 deletions(-)
4a46eb
4a46eb
diff --git a/cloudinit/sources/helpers/vmware/imc/guestcust_util.py b/cloudinit/sources/helpers/vmware/imc/guestcust_util.py
4a46eb
index a270d9fb..816f52e9 100644
4a46eb
--- a/cloudinit/sources/helpers/vmware/imc/guestcust_util.py
4a46eb
+++ b/cloudinit/sources/helpers/vmware/imc/guestcust_util.py
4a46eb
@@ -136,8 +136,8 @@ def get_tools_config(section, key, defaultVal):
4a46eb
     cmd = ['vmware-toolbox-cmd', 'config', 'get', section, key]
4a46eb
 
4a46eb
     try:
4a46eb
-        (outText, _) = subp.subp(cmd)
4a46eb
-    except subp.ProcessExecutionError as e:
4a46eb
+        (outText, _) = util.subp(cmd)
4a46eb
+    except util.ProcessExecutionError as e:
4a46eb
         if e.exit_code == 69:
4a46eb
             logger.debug(
4a46eb
                 "vmware-toolbox-cmd returned 69 (unavailable) for cmd: %s."
4a46eb
-- 
4a46eb
2.18.2
4a46eb