Commit 14a04ccd authored by Vivien Raymond's avatar Vivien Raymond
Browse files

Adds accounting group to sites.xml

Original: 3c0955db585f688a1e95cc19d7b023c04d93bccb
parent 8497c74a
......@@ -129,6 +129,16 @@ if opts.dax:
with open('pegasus.properties','w') as fout:
for line in lines:
fout.write(line)
if cp.has_option('analysis','accounting_group'):
lines=[]
with open('sites.xml') as fin:
for line in fin:
if '<profile namespace="condor" key="getenv">True</profile>' in line:
line=line+' <profile namespace="condor" key="accounting_group">'+cp.get('analysis','accounting_group')+'</profile>\n'
lines.append(line)
with open('sites.xml','w') as fout:
for line in lines:
fout.write(line)
dag.write_sub_files()
dag.write_dag()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment