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:
Chris Holcombe 2017-02-16 11:49:09 -08:00 committed by James Page
parent 459ccae83d
commit ea87ae4feb
1 changed files with 1 additions and 1 deletions

View File

@ -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