From 7af11ba50c8311ceb545b830716c78929079a0cd Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 20 Aug 2013 16:00:09 -0400 Subject: fix bad arguments to subp inside of apply_hostname_bounce This simply correctly invokes subp through util.log_time. The arguments to subp is named 'args' not 'command'. LP: #1214541 --- cloudinit/sources/DataSourceAzure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py index 7ec622bf..66d7728b 100644 --- a/cloudinit/sources/DataSourceAzure.py +++ b/cloudinit/sources/DataSourceAzure.py @@ -209,7 +209,7 @@ def apply_hostname_bounce(hostname, policy, interface, command, # capture=False, see comments in bug 1202758 and bug 1206164. util.log_time(logfunc=LOG.debug, msg="publishing hostname", get_uptime=True, func=util.subp, - kwargs={'command': command, 'shell': shell, 'capture': False, + kwargs={'args': command, 'shell': shell, 'capture': False, 'env': env}) -- cgit v1.2.3