From a78edbb45ce8944ef096719cb1927472724ba737 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 11 May 2013 17:26:06 -0400 Subject: [PATCH] More pep8 --- lib/ansible/constants.py | 2 +- lib/ansible/runner/lookup_plugins/nested.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index 002522f219d..95842a71e8a 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -94,7 +94,7 @@ DEFAULT_KEEP_REMOTE_FILES = get_config(p, DEFAULTS, 'keep_remote_files', 'ANSIBL DEFAULT_SUDO_EXE = get_config(p, DEFAULTS, 'sudo_exe', 'ANSIBLE_SUDO_EXE', 'sudo') DEFAULT_SUDO_FLAGS = get_config(p, DEFAULTS, 'sudo_flags', 'ANSIBLE_SUDO_FLAGS', '-H') DEFAULT_HASH_BEHAVIOUR = get_config(p, DEFAULTS, 'hash_behaviour', 'ANSIBLE_HASH_BEHAVIOUR', 'replace') -DEFAULT_LEGACY_PLAYBOOK_VARIABLES = get_config(p, DEFAULTS, 'legacy_playbook_variables', 'ANSIBLE_LEGACY_PLAYBOOK_VARIABLES', 'yes') +DEFAULT_LEGACY_PLAYBOOK_VARIABLES = get_config(p, DEFAULTS, 'legacy_playbook_variables', 'ANSIBLE_LEGACY_PLAYBOOK_VARIABLES', 'yes') DEFAULT_JINJA2_EXTENSIONS = get_config(p, DEFAULTS, 'jinja2_extensions', 'ANSIBLE_JINJA2_EXTENSIONS', None) DEFAULT_EXECUTABLE = get_config(p, DEFAULTS, 'executable', 'ANSIBLE_EXECUTABLE', '/bin/sh') diff --git a/lib/ansible/runner/lookup_plugins/nested.py b/lib/ansible/runner/lookup_plugins/nested.py index ebc6e11f8ef..e0d0e504a36 100644 --- a/lib/ansible/runner/lookup_plugins/nested.py +++ b/lib/ansible/runner/lookup_plugins/nested.py @@ -45,10 +45,10 @@ class LookupModule(object): def __lookup_injects(self, terms, inject): results = [] for x in terms: - if isinstance(x, basestring) and x in inject: - results.append(inject[x]) - else: - results.append(x) + if isinstance(x, basestring) and x in inject: + results.append(inject[x]) + else: + results.append(x) return results def run(self, terms, inject=None, **kwargs):