Skip to content

Commit 65fb420

Browse files
committed
Fixed small mistakes in log messages
1 parent dbbeba0 commit 65fb420

File tree

3 files changed

+7
-7
lines changed
  • root
    • app
    • etc/s6-overlay/s6-rc.d
      • init-mod-swag-auto-uptime-kuma-add-package
      • init-mod-swag-auto-uptime-kuma-install

3 files changed

+7
-7
lines changed

root/app/swagUptimeKuma.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def deleteMonitor(self, containerName):
9999
self._api.delete_monitor(monitorData['id'])
100100

101101
def deleteMonitors(self, containerNames):
102-
print(f"{logPrefix} Deleting all monitors that had their containers removed")
102+
print(f"{logPrefix} Deleting all monitors that had their containers removed or were disabled")
103103
if (containerNames):
104104
for containerName in containerNames:
105105
self.deleteMonitor(containerName)
@@ -152,7 +152,7 @@ def monitorExists(self, containerName):
152152

153153
def getMonitorSwagTagValue(self, monitorData):
154154
"""
155-
This value is container name itself. Used to link containers with monitors
155+
This value is container name itself. Used to link containers with monitors.
156156
"""
157157
for tag in monitorData.get('tags'):
158158
if (has_key_with_value(tag, "name", self.swagTagName)):
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/with-contenv bash
22

3-
echo "[mod-swag-auto-uptime-kuma] Installing SWAG auto-uptime-kuma packages"
3+
echo "[mod-auto-uptime-kuma] Installing SWAG auto-uptime-kuma packages"
44

55
if ! pip list 2>&1 | grep -q "uptime-kuma-api\|docker"; then
66
echo "\
77
docker \
88
uptime-kuma-api" >> /mod-pip-packages-to-install.list
9-
echo "[mod-swag-auto-uptime-kuma] Successfuly installed packages"
9+
echo "[mod-auto-uptime-kuma] Successfuly installed packages"
1010
else
11-
echo "[mod-swag-auto-uptime-kuma] Packages already installed, skipping..."
11+
echo "[mod-auto-uptime-kuma] Packages already installed, skipping..."
1212
fi

root/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-uptime-kuma-install/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/with-contenv bash
22

33
if [ -z "$UPTIME_KUMA_URL" ] || [ -z "$UPTIME_KUMA_USERNAME" ] || [ -z "$UPTIME_KUMA_PASSWORD" ]; then
4-
echo "[mod-swag-auto-uptime-kuma] Missing required environment variables. Please refer to the Readme, skipping..."
4+
echo "[mod-auto-uptime-kuma] Missing required environment variables. Please refer to the Readme, skipping..."
55
exit 0
66
fi
77

8-
echo "[mod-swag-auto-uptime-kuma] Executing SWAG auto-uptime-kuma mod"
8+
echo "[mod-auto-uptime-kuma] Executing SWAG auto-uptime-kuma mod"
99

1010
scriptPath='/app/auto-uptime-kuma.py'
1111

0 commit comments

Comments
 (0)