From: David Galloway Date: Thu, 24 Mar 2016 20:45:23 +0000 (-0400) Subject: gateway: modify auth-openvpn script to ignore comments and blank lines X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0373f93b02aa12f533d0323c741a12f1799d45ea;p=ceph-cm-ansible.git gateway: modify auth-openvpn script to ignore comments and blank lines Signed-off-by: David Galloway --- diff --git a/roles/gateway/templates/auth-openvpn b/roles/gateway/templates/auth-openvpn index bd82544a..4c346c0b 100644 --- a/roles/gateway/templates/auth-openvpn +++ b/roles/gateway/templates/auth-openvpn @@ -43,6 +43,8 @@ def authenticate(): for line in f: assert line.endswith('\n') line = line[:-1] + if line.startswith("#") or len(line) == 0: + continue (username, salt, correct) = line.split(' ', 2) if username == wanted: return (salt, correct)