Statistics
| Branch: | Revision:

root / snfOCCI / registry.py @ 3f0eb9af

History | View | Annotate | Download (317 Bytes)

1
from occi import registry
2

    
3
class snfRegistry(registry.NonePersistentRegistry):
4

    
5
    def add_resource(self, key, resource, extras):
6

    
7
        key = resource.kind.location + resource.attributes['occi.core.id']
8
        resource.identifier = key
9

    
10
        super(snfRegistry, self).add_resource(key, resource, extras)
11

    
12