Revision 47d421ae snf-pithos-app/pithos/api/resources.py
b/snf-pithos-app/pithos/api/resources.py | ||
---|---|---|
31 | 31 |
# interpreted as representing official policies, either expressed |
32 | 32 |
# or implied, of GRNET S.A. |
33 | 33 |
|
34 |
from synnefo.util.keypath import get_path |
|
35 |
from pithos.api.settings import pithos_services |
|
34 | 36 |
|
35 |
resources = [ |
|
36 |
{"desc": "Pithos account diskspace", |
|
37 |
"name": "pithos.diskspace", |
|
38 |
"unit": "bytes", |
|
39 |
"service_type": "object-store", |
|
40 |
} |
|
41 |
] |
|
37 |
resources = get_path(pithos_services, 'pithos_object-store.resources').values() |
Also available in: Unified diff