summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorRobert Schweikert <rjschwei@suse.com>2017-11-08 15:06:59 -0500
committerScott Moser <smoser@brickies.net>2017-11-10 16:16:04 -0500
commit420c3452f2009e08f545eaa9ef126ab922133678 (patch)
treeb1bc22cf1af65d6d2569b9f58daa566d301d794b /cloudinit
parentb6deb1d851100a79a89d3c66e74df7bc7efff68c (diff)
downloadvyos-cloud-init-420c3452f2009e08f545eaa9ef126ab922133678.tar.gz
vyos-cloud-init-420c3452f2009e08f545eaa9ef126ab922133678.zip
Improve warning message when a template is not found.
At present the location for the template file look up upon failure includes the template file itself. However based on the wording of the message it should only contain the template directory issue LP: #1731035
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/cloud.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/cloud.py b/cloudinit/cloud.py
index d8a9fc86..ba616781 100644
--- a/cloudinit/cloud.py
+++ b/cloudinit/cloud.py
@@ -56,8 +56,8 @@ class Cloud(object):
def get_template_filename(self, name):
fn = self.paths.template_tpl % (name)
if not os.path.isfile(fn):
- LOG.warning("No template found at %s for template named %s",
- fn, name)
+ LOG.warning("No template found in %s for template named %s",
+ os.path.dirname(fn), name)
return None
return fn