diff options
author | Scott Moser <smoser@brickies.net> | 2017-06-01 10:39:34 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-06-01 10:52:55 -0400 |
commit | 79236a629f1e0e61b260d0cb995b6299a5c7aac1 (patch) | |
tree | ac41475e4344b4307f9ff67780fdfcd2c8c36609 /tools/net-convert.py | |
parent | 0a448dd034883c07f85091dbfc9117de7227eb8d (diff) | |
download | vyos-cloud-init-79236a629f1e0e61b260d0cb995b6299a5c7aac1.tar.gz vyos-cloud-init-79236a629f1e0e61b260d0cb995b6299a5c7aac1.zip |
tools/net-convert.py: support old cloudinit versions by using kwargs.
Older cloud-init versions have a bug in the signature of the
render_network_state method for netplan (bug 1685944).
The old had:
render_network_state(target, network_state)
The fix was to change netplan's so it had the correct signature:
render_network_state(network_state, target)
This just changes our caller to use kwargs style when invoking that
method so that it works with either the broken form or correct form.
Diffstat (limited to 'tools/net-convert.py')
-rwxr-xr-x | tools/net-convert.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/net-convert.py b/tools/net-convert.py index b2db8adf..68559cbf 100755 --- a/tools/net-convert.py +++ b/tools/net-convert.py @@ -75,7 +75,7 @@ def main(): r_cls = sysconfig.Renderer r = r_cls() - r.render_network_state(ns, target=args.directory) + r.render_network_state(network_state=ns, target=args.directory) if __name__ == '__main__': |