Revision 6919b221 snf-astakos-app/astakos/im/endpoints/qh.py
b/snf-astakos-app/astakos/im/endpoints/qh.py | ||
---|---|---|
74 | 74 |
c = get_client() |
75 | 75 |
if not c: |
76 | 76 |
return |
77 |
if payload == []: |
|
78 |
return [] |
|
77 | 79 |
result = c.set_quota(context={}, clientkey=clientkey, set_quota=payload) |
78 | 80 |
logger.debug('set_quota: %s rejected: %s' % (payload, result)) |
79 | 81 |
return result |
... | ... | |
83 | 85 |
c = get_client() |
84 | 86 |
if not c: |
85 | 87 |
return |
88 |
if payload == []: |
|
89 |
return [] |
|
86 | 90 |
result = c.get_entity(context={}, get_entity=payload) |
87 | 91 |
logger.debug('get_entity: %s reply: %s' % (payload, result)) |
88 | 92 |
return result |
... | ... | |
92 | 96 |
c = get_client() |
93 | 97 |
if not c: |
94 | 98 |
return |
99 |
if payload == []: |
|
100 |
return [] |
|
95 | 101 |
result = c.get_holding(context={}, get_holding=payload) |
96 | 102 |
logger.debug('get_holding: %s reply: %s' % (payload, result)) |
97 | 103 |
return result |
... | ... | |
143 | 149 |
for resource in resources: |
144 | 150 |
append((user.uuid, resource, ENTITY_KEY),) |
145 | 151 |
|
152 |
if payload == []: |
|
153 |
return [] |
|
146 | 154 |
result = c.get_quota(context={}, clientkey=clientkey, get_quota=payload) |
147 | 155 |
logger.debug('get_quota: %s rejected: %s' % (payload, result)) |
148 | 156 |
return result |
... | ... | |
162 | 170 |
c = get_client() |
163 | 171 |
if not c: |
164 | 172 |
return |
173 |
if payload == []: |
|
174 |
return [] |
|
165 | 175 |
result = c.create_entity( |
166 | 176 |
context={}, clientkey=clientkey, create_entity=payload) |
167 | 177 |
logger.debug('create_entity: %s rejected: %s' % (payload, result)) |
Also available in: Unified diff