diff --git a/grid5000/objects.py b/grid5000/objects.py index a7d60e0aca6ba1f8f41d2188ac8e9a6ec9e69d27..9f3466126f341919708665def55f18f3d18dc867 100644 --- a/grid5000/objects.py +++ b/grid5000/objects.py @@ -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]