summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorDimitri John Ledkov <xnox@ubuntu.com>2017-05-13 01:28:14 +0100
committerScott Moser <smoser@brickies.net>2017-05-17 12:28:51 -0400
commita6572d9415e592cbf9821b769bbee9e7fdf029d5 (patch)
tree4aefa462a7353f8de5ac215ba5fa42aba9a6a3d8 /cloudinit
parent31b6f173280fcc8e9be2732ae2e9b6f6c89679d4 (diff)
downloadvyos-cloud-init-a6572d9415e592cbf9821b769bbee9e7fdf029d5.tar.gz
vyos-cloud-init-a6572d9415e592cbf9821b769bbee9e7fdf029d5.zip
netplan: fix netplan render_network_state signature.
tools/net-convert fails to output netplan config, because the positional arguments of render_network_state are the wrong way around for that function w.r.t. other renders. Fix the netplan renderer to have the correct signature. LP: #1685944
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/net/netplan.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/net/netplan.py b/cloudinit/net/netplan.py
index 825fe831..56b41be4 100644
--- a/cloudinit/net/netplan.py
+++ b/cloudinit/net/netplan.py
@@ -205,7 +205,7 @@ class Renderer(renderer.Renderer):
self._postcmds = config.get('postcmds', False)
self.clean_default = config.get('clean_default', True)
- def render_network_state(self, target, network_state):
+ def render_network_state(self, network_state, target):
# check network state for version
# if v2, then extract network_state.config
# else render_v2_from_state