sailesh1993 / rpms / cloud-init

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