Loading ccserver/handlers.py +3 −4 Original line number Diff line number Diff line Loading @@ -356,15 +356,14 @@ class CliHandler(OnlineCCHandler): self._check(conn, 'tags', query) objects = self._server.list(query, show=set(('a',))) for obj in objects: if 'a' not in obj: raise BadObjectError('All objects must have the "a" tag.') tags = [] for obj in objects: if 'a' not in obj: continue otags = self._server.conf.show(obj['a'])['tags'] otags.update({'id': obj['id']}) tags.append(otags) return tags return {'objects': tags, 'order': ['id']} @listed def delaccount(self, conn, query): Loading Loading
ccserver/handlers.py +3 −4 Original line number Diff line number Diff line Loading @@ -356,15 +356,14 @@ class CliHandler(OnlineCCHandler): self._check(conn, 'tags', query) objects = self._server.list(query, show=set(('a',))) for obj in objects: if 'a' not in obj: raise BadObjectError('All objects must have the "a" tag.') tags = [] for obj in objects: if 'a' not in obj: continue otags = self._server.conf.show(obj['a'])['tags'] otags.update({'id': obj['id']}) tags.append(otags) return tags return {'objects': tags, 'order': ['id']} @listed def delaccount(self, conn, query): Loading