Fix problem with adding CAP_NET_ADMIN to capabilities tag
Andy Bavier [Wed, 1 Jul 2009 21:09:59 +0000 (21:09 +0000)]
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)