diff options
author | Ryan Harper <ryan.harper@canonical.com> | 2017-04-24 16:40:35 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-05-16 16:28:25 -0400 |
commit | 64a3df16d9c63db470a3ba55d9c5cc8e05d050d7 (patch) | |
tree | f4ab0a6b825532843df5fb7e46317be6e48f9d71 | |
parent | 9a178611b89ca198145c200718ab8f205ece398c (diff) | |
download | vyos-cloud-init-64a3df16d9c63db470a3ba55d9c5cc8e05d050d7.tar.gz vyos-cloud-init-64a3df16d9c63db470a3ba55d9c5cc8e05d050d7.zip |
tools/net-convert: fix argument order for render_network_state
We're calling Renderer.render_network_state() with incorrect args.
% PYTHONPATH=`pwd` ./tools/net-convert.py \
--network-data=simple-v2.yaml --kind=yaml \
--output-kind netplan --directory ./target
Traceback (most recent call last):
File "./tools/net-convert.py", line 82, in <module>
main()
File "./tools/net-convert.py", line 78, in main
r.render_network_state(ns, target=args.directory)
TypeError: render_network_state() got multiple values for argument 'target'
The method signature requires passing <target dir>, <network_state>.
This patch fixes the call order.
LP: #1685944
-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 870da639..ec4ee645 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(args.directory, ns) if __name__ == '__main__': |