Revision c51f3a08 snf-cyclades-app/synnefo/api/management/commands/server-list.py

b/snf-cyclades-app/synnefo/api/management/commands/server-list.py
109 109
            servers = filter_results(servers, filter_by)
110 110

  
111 111
        cache = ImageCache()
112
        ucache = UUIDCache()
112
        if options['use_uuids'] is False:
113
            ucache = UUIDCache()
113 114

  
114 115
        headers = ('id', 'name', 'owner', 'flavor', 'image', 'state',
115 116
                   'backend')
......
131 132
            state = format_vm_state(server)
132 133

  
133 134
            user = server.userid
134
            if not options['use_uuids']:
135
            if options['use_uuids'] is False:
135 136
                user = ucache.get_user(server.userid)
136 137

  
137 138
            fields = (str(server.id), name, user, flavor, image,

Also available in: Unified diff