diff --git a/salt/lxc-containers/config b/salt/lxc-containers/config index 09847ee..a145be2 100644 --- a/salt/lxc-containers/config +++ b/salt/lxc-containers/config @@ -14,7 +14,7 @@ lxc.kmsg = 0 {%- for net, conf in container['interfaces'].items() %} lxc.network.type={{ conf['type'] }} lxc.network.flags=up -lxc.network.hwaddr={{ hwaddr_prefix }}:{{ n.__str()__.rjust(2, '0') }} +lxc.network.hwaddr={{ hwaddr_prefix }}:{{ n.__str__().rjust(2, '0') }} {%- if conf['type'] == 'veth' %} lxc.network.veth.pair={{ id }}-{{ net }} {%- endif %}