From cdc56afe010ef8640ffaa5e9d0f85903bd69b977 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 31 Jan 2017 15:18:02 -0800 Subject: [PATCH] PEP 8 fixes. --- lib/ansible/plugins/lookup/keyring.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/plugins/lookup/keyring.py b/lib/ansible/plugins/lookup/keyring.py index 5192806f92e..0d4da4b4667 100644 --- a/lib/ansible/plugins/lookup/keyring.py +++ b/lib/ansible/plugins/lookup/keyring.py @@ -25,17 +25,17 @@ Lookup plugin to grab secrets from the OS keyring. Warning the secret will be output to the screen -Example: +Example: --- - hosts: localhost tasks: - name : test - debug: + debug: msg: "Password: {{item}}" with_keyring: - 'servicename username' -ansible localhost -m debug -a "msg=\"{{item}}\" with_keyring= 'servicename username'" +ansible localhost -m debug -a "msg=\"{{item}}\" with_keyring= 'servicename username'" ''' HAS_KEYRING = True @@ -59,7 +59,7 @@ from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, **kwargs): - if not HAS_KEYRING: + if not HAS_KEYRING: raise AnsibleError(u"Can't LOOKUP(keyring): missing required python library 'keyring'") display.vvvv(u"keyring: %s" % keyring.get_keyring() )