DataSourceAzure: do not capture output of bounce command
As shown in comments of bug 1202758 and filing of ntp bug 1206164, waiting for the output of this command causes us to wait for ntpdate to fully finish. Ideally I think we'd disable ntpdate running on this run, but that is not trivially possible.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user