From fa4b30819a6d72b5914bf377ae9ef1a7330f6076 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Tue, 26 Nov 2013 08:54:19 -0500 Subject: [PATCH] Fix comment yaml escaping in authorized_key module --- system/authorized_key | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/authorized_key b/system/authorized_key index e5cbb93017d..a503e9cc021 100644 --- a/system/authorized_key +++ b/system/authorized_key @@ -215,6 +215,9 @@ def parsekey(raw_key): key_type = None # type of ssh key type_index = None # index of keytype in key string|list + # remove comment yaml escapes + raw_key = raw_key.replace('\#', '#') + # split key safely lex = shlex.shlex(raw_key) lex.quotes = ["'", '"']