Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 593c4d18 authored by SIMONIN Matthieu's avatar SIMONIN Matthieu
Browse files

StorageHomeUser: use id as __attr_id

parent 6a68e0d1
No related branches found
No related tags found
No related merge requests found
......@@ -213,7 +213,8 @@ class StorageHomeUserManager(RESTManager):
We'd prefer having a list, so we inject an uid in the responses:
[
{
"uid": "G5k-home_jpicard_j_1666466-nancy_1"
# We align the id_attr according to what is returned by the api
"id": "G5k-home_jpicard_j_1666466-nancy_1"
"ipv4": [
"172.16.64.97"
],
......@@ -229,7 +230,7 @@ class StorageHomeUserManager(RESTManager):
_objs = []
for uid, access in l_objs.items():
_obj = access
_obj.update(uid=uid)
_obj.update(id=uid)
_objs.append(_obj)
return [self._obj_cls(self, _obj) for _obj in _objs]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment