|
|
@ -243,11 +243,16 @@ def main():
|
|
|
|
nf.write(new_limit)
|
|
|
|
nf.write(new_limit)
|
|
|
|
|
|
|
|
|
|
|
|
f.close()
|
|
|
|
f.close()
|
|
|
|
nf.close()
|
|
|
|
nf.flush()
|
|
|
|
|
|
|
|
|
|
|
|
# Copy tempfile to newfile
|
|
|
|
# Copy tempfile to newfile
|
|
|
|
module.atomic_move(nf.name, f.name)
|
|
|
|
module.atomic_move(nf.name, f.name)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
nf.close()
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
res_args = dict(
|
|
|
|
res_args = dict(
|
|
|
|
changed = changed, msg = message
|
|
|
|
changed = changed, msg = message
|
|
|
|
)
|
|
|
|
)
|
|
|
|