mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-06-01 23:49:40 +02:00
fix: convert file mode string to ocal
This commit is contained in:
parent
5a02daea40
commit
e5d02b3293
|
@ -174,7 +174,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"], self.config.config["output_file_mode"])
|
||||
chmod(self.config.config["output_file"], int(self.config.config["output_file_mode"], 8))
|
||||
|
||||
def _terminate(self, signal, frame):
|
||||
self.log.sysexit_with_message("Terminating", code=0)
|
||||
|
|
|
@ -71,7 +71,7 @@ class Config():
|
|||
"type": environs.Env().str
|
||||
},
|
||||
"output_file_mode": {
|
||||
"default": "0644",
|
||||
"default": "0640",
|
||||
"env": "OUTPUT_FILE_MODE",
|
||||
"file": True,
|
||||
"type": environs.Env().str
|
||||
|
|
Loading…
Reference in New Issue
Block a user