From 79236a629f1e0e61b260d0cb995b6299a5c7aac1 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 1 Jun 2017 10:39:34 -0400 Subject: 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. --- tools/net-convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/net-convert.py') 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__': -- cgit v1.2.3