Revision 8283d6c1 snf-cyclades-app/synnefo/api/management/commands/server-inspect.py

b/snf-cyclades-app/synnefo/api/management/commands/server-inspect.py
77 77

  
78 78
        displayname = options['displayname']
79 79

  
80
        ucache = common.UUIDCache()
80
        ucache = common.UserCache()
81 81

  
82 82
        try:
83 83
            image = common.get_image(vm.imageid, vm.userid)['name']
......
94 94

  
95 95
        uuid = vm.userid
96 96
        if displayname:
97
            dname = ucache.get_user(uuid)
97
            dname = ucache.get_name(uuid)
98 98

  
99 99
        fields = filter(lambda x: x is not Omit,
100 100
                        [vm.name, uuid, dname if displayname else Omit,

Also available in: Unified diff