Skip to content
This repository was archived by the owner on May 31, 2023. It is now read-only.

Commit 93f25a8

Browse files
authored
cast grafana_port to int. Fix #212 (#213)
[minor] release
1 parent a5dcecb commit 93f25a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tasks/configure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
capability: CAP_NET_BIND_SERVICE+ep
7676
state: present
7777
when:
78-
- grafana_port <= 1024
78+
- grafana_port | int <= 1024
7979
- grafana_cap_net_bind_service
8080

8181
- name: Enable and start Grafana systemd unit

tasks/preflight.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
fail:
7575
msg: Trying to use a port lower than 1024 without setting grafana_cap_net_bind_service.
7676
when:
77-
- grafana_port <= 1024
77+
- grafana_port | int <= 1024
7878
- not grafana_cap_net_bind_service
7979

8080
- name: Fail if grafana_server.socket not defined when in socket mode

0 commit comments

Comments
 (0)