Skip to content

Commit

Permalink
Added default for network version for cases where this key may be mis…
Browse files Browse the repository at this point in the history
…sing as in issue #8
  • Loading branch information
mrlesmithjr committed Jan 12, 2019
1 parent 243bbda commit 01d0169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/etc/netplan/config.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
network:
version: {{ netplan_configuration['network']['version'] }}
version: {{ netplan_configuration['network']['version']|default('2') }}
renderer: {{ netplan_renderer }}
{% if netplan_configuration['network']['ethernets'] is defined %}
ethernets:
Expand Down

0 comments on commit 01d0169

Please sign in to comment.