From 0f44ba5a5ad999cba9e9d9170bc7a01b44b81d47 Mon Sep 17 00:00:00 2001 From: Piffey Parlance Date: Sat, 2 Feb 2013 18:17:18 -0600 Subject: [PATCH] * Minor removal of some dumb I did. --- library/authorized_key | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/library/authorized_key b/library/authorized_key index 51515444fa4..f936e20c81d 100644 --- a/library/authorized_key +++ b/library/authorized_key @@ -143,16 +143,14 @@ def enforce_state(module, params): key = params["key"] state = params.get("state", "present") - # If multiple keys split on the newline - if '\n' in key: - new_keys = key.split('\n') + key = key.split('\n') # check current state -- just get the filename, don't create file params["keyfile"] = keyfile(module, user, write=False) keys = readkeys(params["keyfile"]) # Check our new keys, if any of them exist we'll continue. - for new_key in new_keys: + for new_key in key: present = new_key in keys # handle idempotent state=present if state=="present":