mirror of
https://github.com/hassio-addons/addon-prometheus.git
synced 2025-05-05 03:31:25 +00:00
Bunch of tweaks (#1)
* 🚑 Fix GitLab CI to have the right base images * ✏️ Docs cleanup * 👕 Dockerfile tweaks * 🔥 Remove unused variable from proemetheus init * 👕 Prettier on JSON & YAML files * 👕 Other minor styling * 🔥 Removal of disabled shellcheck rule * 👕 Fix shellcheck linter warning * ✏️ Small tweak to Python code * 🔨 Reduce resulting image with 68Mb
This commit is contained in:
parent
84b7286ef5
commit
5158849871
11 changed files with 43 additions and 39 deletions
|
@ -39,7 +39,7 @@ def testConfig(config):
|
|||
except:
|
||||
print("Failed to validate")
|
||||
raise
|
||||
if result == False:
|
||||
if not result:
|
||||
raise Exception("validation error")
|
||||
return result
|
||||
|
||||
|
@ -51,7 +51,6 @@ def writeConfig(config, file):
|
|||
r = requests.post(url="http://localhost:9090/-/reload", data={})
|
||||
except:
|
||||
print("Exception")
|
||||
pass
|
||||
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue