Merge "Fix trove-guestagent startup for redis mangled config cmd"

This commit is contained in:
Zuul 2017-11-24 07:14:02 +00:00 committed by Gerrit Code Review
commit b09d0eb313
1 changed files with 4 additions and 3 deletions

View File

@ -229,9 +229,10 @@ class RedisApp(object):
"""Get current name of the 'CONFIG' command.
"""
renamed_cmds = self.configuration_manager.get_value('rename-command')
for name_pair in renamed_cmds:
if name_pair[0] == 'CONFIG':
return name_pair[1]
if renamed_cmds:
for name_pair in renamed_cmds:
if name_pair[0] == 'CONFIG':
return name_pair[1]
return None