From 691f4cc049a96ddcc245405f2b550467e691ab30 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 11 Feb 2015 14:05:27 -0800 Subject: [PATCH] Tabs to spaces --- lib/ansible/modules/system/authorized_key.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ansible/modules/system/authorized_key.py b/lib/ansible/modules/system/authorized_key.py index 06d16da5ee..4ca4f30f32 100644 --- a/lib/ansible/modules/system/authorized_key.py +++ b/lib/ansible/modules/system/authorized_key.py @@ -353,14 +353,14 @@ def enforce_state(module, params): # if the key is a url, request it and use it as key source if key.startswith("http"): - try: + try: resp, info = fetch_url(module, key) - if info['status'] != 200: + if info['status'] != 200: module.fail_json(msg=error_msg % key) - else: - key = resp.read() - except Exception: - module.fail_json(msg=error_msg % key) + else: + key = resp.read() + except Exception: + module.fail_json(msg=error_msg % key) # extract individual keys into an array, skipping blank lines and comments key = [s for s in key.splitlines() if s and not s.startswith('#')]