From 5b2035edd9b3003a1e7deba0adc246740b3b09e5 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 10 Apr 2013 19:12:10 -0400 Subject: [PATCH] Changes for 'make pep8' --- lib/ansible/utils/__init__.py | 1 + lib/ansible/utils/template.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index 1bd08495b36..68b384c6be9 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -692,6 +692,7 @@ def safe_eval(str): def is_set(var): return not var.startswith("$") and not '{{' in var + def is_unset(var): return var.startswith("$") or '{{' in var diff --git a/lib/ansible/utils/template.py b/lib/ansible/utils/template.py index e38fd0dfa0f..f1c99818202 100644 --- a/lib/ansible/utils/template.py +++ b/lib/ansible/utils/template.py @@ -32,7 +32,7 @@ import pwd class Flags: - LEGACY_TEMPLATE_WARNING = False + LEGACY_TEMPLATE_WARNING = False # TODO: refactor this file