From 572e55854947b09a32f57feae83530db6881e224 Mon Sep 17 00:00:00 2001 From: Edward Hope-Morley Date: Mon, 29 Jun 2015 18:55:59 +0100 Subject: [PATCH] [hopem,r=] Ensure mktmp dir is deleted when no longer needed. Closes-Bug: 1467938 --- templates/os-charm-phy-nic-mtu.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/os-charm-phy-nic-mtu.conf b/templates/os-charm-phy-nic-mtu.conf index edbb2588..7a471321 100644 --- a/templates/os-charm-phy-nic-mtu.conf +++ b/templates/os-charm-phy-nic-mtu.conf @@ -7,9 +7,9 @@ task script devs="{{ devs }}" mtu="{{ mtu }}" - tmpfile=`mktemp` - echo $devs > $tmpfile if [ -n "$mtu" ]; then + tmpfile=`mktemp` + echo $devs > $tmpfile while read -r dev; do [ -n "$dev" ] || continue rc=0