Index: trunk/extensions/OpenStackManager/scripts/ldapsupportlib.py |
— | — | @@ -85,6 +85,8 @@ |
86 | 86 | def getLdapInfo(self, attr, conffile="/etc/ldap.conf"): |
87 | 87 | f = open(conffile) |
88 | 88 | for line in f: |
| 89 | + if line.strip() == "": |
| 90 | + continue |
89 | 91 | if line.split()[0] == attr: |
90 | 92 | return line.split()[1] |
91 | 93 | break |