summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-08-20 16:00:09 -0400
committerScott Moser <smoser@ubuntu.com>2013-08-20 16:00:09 -0400
commit7af11ba50c8311ceb545b830716c78929079a0cd (patch)
treef6bf943d4e90940b52afb88e7396da355805a7fc
parentb2ee0966793f3a9c7d8e92ce1c13b9583a9a76e7 (diff)
downloadvyos-cloud-init-7af11ba50c8311ceb545b830716c78929079a0cd.tar.gz
vyos-cloud-init-7af11ba50c8311ceb545b830716c78929079a0cd.zip
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
-rw-r--r--cloudinit/sources/DataSourceAzure.py2
1 files changed, 1 insertions, 1 deletions
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})