mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-06-02 07:59:40 +02:00
Allow reading output file by group
This commit is contained in:
parent
d92d715ee4
commit
336ae12f4b
|
@ -3,6 +3,7 @@
|
|||
|
||||
import argparse
|
||||
import json
|
||||
from os import chmod
|
||||
import shutil
|
||||
import signal
|
||||
import tempfile
|
||||
|
@ -170,6 +171,7 @@ class PrometheusSD:
|
|||
json.dump(output, tf, indent=4)
|
||||
|
||||
shutil.move(temp_file.name, self.config.config["output_file"])
|
||||
chmod(self.config.config["output_file"], 0o640)
|
||||
|
||||
def _terminate(self, signal, frame):
|
||||
self.log.sysexit_with_message("Terminating", code=0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user