From 9b9b2fe575d13b583d1943de447704b743682999 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 28 Nov 2016 23:23:38 +0100 Subject: [PATCH] lxc-containers: fix hwaddr templating --- salt/lxc-containers/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %}