Commit 54522679 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[dock] Fix filter subscript accesses

parent 95600cf3
......@@ -115,10 +115,10 @@ class Host(object):
def full_environment_name(self, name):
try:
return filter(lambda x: x.startswith(name + ' ('), self.processing_environments.keys())[0]
return list(filter(lambda x: x.startswith(name + ' ('), self.processing_environments.keys()))[0]
except:
try:
return filter(lambda x: x.startswith(name + ' ('), self.db_environments.keys())[0]
return list(filter(lambda x: x.startswith(name + ' ('), self.db_environments.keys()))[0]
except:
return None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment