Commit 450bb37c by jctanner

Merge pull request #5655 from scottgilbert/devel

Allow keystring passed to authorized_key to contain blank lines and comments
parents 19cb22b6 0aedd0c0
......@@ -341,7 +341,9 @@ def enforce_state(module, params):
state = params.get("state", "present")
key_options = params.get("key_options", None)
key = key.split('\n')
# extract indivial keys into an array, skipping blank lines and comments
key = [s for s in key.splitlines() if s and not s.startswith('#')]
# check current state -- just get the filename, don't create file
do_write = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment