Fix parse_key
parse_key returns incorrect data when the cephx key contains [caps]. Closes-Bug: 1665149 Change-Id: I0b5a9d3db94a43f60e785c3c2cb73a7ed84e208b
This commit is contained in:
parent
459ccae83d
commit
ea87ae4feb
|
@ -960,7 +960,7 @@ def parse_key(raw_key):
|
|||
else:
|
||||
for element in raw_key.splitlines():
|
||||
if 'key' in element:
|
||||
key = element.split(' = ')[1].strip() # IGNORE:E1103
|
||||
return element.split(' = ')[1].strip() # IGNORE:E1103
|
||||
return key
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue