diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-08-20 16:00:09 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-08-20 16:00:09 -0400 |
commit | 7af11ba50c8311ceb545b830716c78929079a0cd (patch) | |
tree | f6bf943d4e90940b52afb88e7396da355805a7fc /cloudinit | |
parent | b2ee0966793f3a9c7d8e92ce1c13b9583a9a76e7 (diff) | |
download | vyos-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
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/sources/DataSourceAzure.py | 2 |
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}) |