diff options
author | 2018-03-19 09:14:23 +0000 | |
---|---|---|
committer | 2018-03-19 09:14:23 +0000 | |
commit | 57ff66cbe085f640deb7d1c6b57052f3282b05a5 (patch) | |
tree | 8f91b9941a4c1f3686b1c10f5c0bf05e94e3dd8d /deploy/post | |
parent | e791b002ecc023b2df94fbc72f7673403268b65a (diff) | |
parent | 9fb1b507dc7a77db2f9df7541932b43e88a3a4b3 (diff) |
Merge "Fix Licence header missing issues"
Diffstat (limited to 'deploy/post')
-rw-r--r-- | deploy/post/keystoneauth.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deploy/post/keystoneauth.py b/deploy/post/keystoneauth.py index 2d7d0e75..f3d25ae0 100644 --- a/deploy/post/keystoneauth.py +++ b/deploy/post/keystoneauth.py @@ -1,5 +1,5 @@ ############################################################################## -# Copyright (c) 2017 ZTE Coreporation and others. +# Copyright (c) 2017 ZTE Corporation and others. # feng.xiaowei@zte.com.cn # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 @@ -30,6 +30,8 @@ class Keystoneauth(object): def _parse_openrc(self): def parse_line(creds, line): + if line.startswith('#') or "=" not in line: + return creds var = line.rstrip('"\n').replace('export ', '').split("=") # The two next lines should be modified as soon as rc_file # conforms with common rules. Be aware that it could induce |