Fix problem with adding CAP_NET_ADMIN to capabilities tag
[nodemanager-topo.git] / create-topo-attributes.py
index 2fe6ee3..3ebe2ff 100755 (executable)
@@ -167,7 +167,7 @@ class Slice:
                 if cap == "CAP_NET_ADMIN":
                     return
             else:
-                newcaps = "CAP_NET_ADMIN," + caps
+                newcaps = "CAP_NET_ADMIN," + tag.value
                 self.update_tag('capabilities', newcaps, slicetags)
         else:
             self.add_tag('capabilities', 'CAP_NET_ADMIN', slicetags)