X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fcodemux.py;fp=codemux.py;h=ce69e4a13b1865f29558a7028567fe3dec32ef47;hb=4f04767359981da2906f6c4a0315e5da147db3bf;hp=7b113504e43020a6408733c900f5a4f44e0d339c;hpb=1170627c76832513faf152af5bf1d4ffaf588c02;p=nodemanager.git diff --git a/codemux.py b/plugins/codemux.py similarity index 96% rename from codemux.py rename to plugins/codemux.py index 7b11350..ce69e4a 100644 --- a/codemux.py +++ b/plugins/codemux.py @@ -16,7 +16,10 @@ def start(options, config): def GetSlivers(data): - """For each sliver with the codemux attribute, parse out "host,port" and make entry in conf. Restart service after.""" + """ + For each sliver with the codemux attribute, parse out "host,port" + and make entry in conf. Restart service after. + """ logger.log("codemux: Starting.", 2) # slices already in conf slicesinconf = parseConf() @@ -30,7 +33,7 @@ def GetSlivers(data): # Parse attributes and update dict of scripts for sliver in data['slivers']: for attribute in sliver['attributes']: - if attribute['name'] == 'codemux': + if attribute['tagname'] == 'codemux': # add to conf. Attribute is [host, port] params = {'host': attribute['value'].split(",")[0], 'port': attribute['value'].split(",")[1]}