summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/sources/DataSourceAzure.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py
index 9503b045..2f28702e 100644
--- a/cloudinit/sources/DataSourceAzure.py
+++ b/cloudinit/sources/DataSourceAzure.py
@@ -206,9 +206,11 @@ def apply_hostname_bounce(hostname, policy, interface, command,
command = BOUNCE_COMMAND
LOG.debug("pubhname: publishing hostname [%s]", msg)
+ start = time.time()
shell = not isinstance(command, (list, tuple))
- (output, err) = util.subp(command, shell=shell, capture=True, env=env)
- LOG.debug("output: %s. err: %s", output, err)
+ # capture=False, see comments in bug 1202758 and bug 1206164.
+ (output, err) = util.subp(command, shell=shell, capture=False, env=env)
+ LOG.debug("publishing hostname took %.3f seconds", time.time() - start)
def crtfile_to_pubkey(fname):