From 4ecca95e5973707f08fefc43448fec9e0f984966 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Wed, 12 Nov 2014 13:52:28 +0000 Subject: Handle = used as config delimiter in SSH config. --- cloudinit/ssh_util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cloudinit/ssh_util.py') diff --git a/cloudinit/ssh_util.py b/cloudinit/ssh_util.py index 70a577bc..14d0cb0f 100644 --- a/cloudinit/ssh_util.py +++ b/cloudinit/ssh_util.py @@ -293,7 +293,10 @@ def parse_ssh_config(fname): if not line or line.startswith("#"): lines.append(SshdConfigLine(line)) continue - (key, val) = line.split(None, 1) + try: + key, val = line.split(None, 1) + except ValueError: + key, val = line.split('=', 1) lines.append(SshdConfigLine(line, key, val)) return lines -- cgit v1.2.3