summaryrefslogtreecommitdiff
path: root/cloudinit/templater.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/templater.py')
-rw-r--r--cloudinit/templater.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cloudinit/templater.py b/cloudinit/templater.py
index 648cd218..b3ea64e4 100644
--- a/cloudinit/templater.py
+++ b/cloudinit/templater.py
@@ -103,14 +103,14 @@ def detect_template(text):
raise ValueError("Unknown template rendering type '%s' requested"
% template_type)
if template_type == 'jinja' and not JINJA_AVAILABLE:
- LOG.warn("Jinja not available as the selected renderer for"
- " desired template, reverting to the basic renderer.")
+ LOG.warning("Jinja not available as the selected renderer for"
+ " desired template, reverting to the basic renderer.")
return ('basic', basic_render, rest)
elif template_type == 'jinja' and JINJA_AVAILABLE:
return ('jinja', jinja_render, rest)
if template_type == 'cheetah' and not CHEETAH_AVAILABLE:
- LOG.warn("Cheetah not available as the selected renderer for"
- " desired template, reverting to the basic renderer.")
+ LOG.warning("Cheetah not available as the selected renderer for"
+ " desired template, reverting to the basic renderer.")
return ('basic', basic_render, rest)
elif template_type == 'cheetah' and CHEETAH_AVAILABLE:
return ('cheetah', cheetah_render, rest)