git://git.onelab.eu
/
nodemanager-topo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug fixes
[nodemanager-topo.git]
/
create-topo-attributes.py
diff --git
a/create-topo-attributes.py
b/create-topo-attributes.py
index
f0c95e2
..
2fe6ee3
100755
(executable)
--- a/
create-topo-attributes.py
+++ b/
create-topo-attributes.py
@@
-119,8
+119,8
@@
class Slice:
else:
record['node_id'] = None
tag = Slicetag(record)
else:
record['node_id'] = None
tag = Slicetag(record)
- slicetags[id] = tag
- self.slice_tag_ids.append(id)
+ slicetags[
tag.
id] = tag
+ self.slice_tag_ids.append(
tag.
id)
tag.changed = True
tag.updated = True
return tag
tag.changed = True
tag.updated = True
return tag
@@
-297,8
+297,8
@@
def get_slice_tags():
Find a free EGRE key
"""
def free_egre_key(slicetags):
Find a free EGRE key
"""
def free_egre_key(slicetags):
+ used = set()
for i in slicetags:
for i in slicetags:
- used = set()
tag = slicetags[i]
if tag.tagname == 'egre_key':
used.add(int(tag.value))
tag = slicetags[i]
if tag.tagname == 'egre_key':
used.add(int(tag.value))