Added prefix meaningfull prefix for each resource instance
This commit is contained in:
parent
56b293abc4
commit
f194a3040b
@ -171,7 +171,7 @@ def assign_resources_to_nodes(resources, nodes):
|
||||
res = deepcopy(resource)
|
||||
res['tags'] = list(set(node.get('tags', [])) |
|
||||
set(resource.get('tags', [])))
|
||||
resource_uuid = solar.utils.generate_uuid()
|
||||
resource_uuid = '{0}-{1}'.format(res['id'], solar.utils.generate_uuid())
|
||||
# We should not generate here any uuid's, because
|
||||
# a single node should be represented with a single
|
||||
# resource
|
||||
|
@ -129,4 +129,3 @@ class Data(collections.MutableMapping):
|
||||
|
||||
def __len__(self):
|
||||
return len(self.store)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user