Commit 00d76c0c authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Fix typo in "servers list" flavor filter

parent ab6fd07d
......@@ -168,7 +168,7 @@ class server_list(_CycladesInit, OptionalOutput, NameFilter, IDFilter):
def _filter_by_flavor(self, servers):
fid = self['flavor_id']
return [srv for srv in servers if (
'%s' % srv['image']['id'] == '%s' % fid)]
'%s' % srv['flavor']['id'] == '%s' % fid)]
def _filter_by_metadata(self, servers):
new_servers = []
......
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