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

Commit

Permalink
cast grafana_port to int. Fix #212 (#213)
Browse files Browse the repository at this point in the history
[minor] release
  • Loading branch information
kapouer authored Mar 30, 2020
1 parent a5dcecb commit 93f25a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
capability: CAP_NET_BIND_SERVICE+ep
state: present
when:
- grafana_port <= 1024
- grafana_port | int <= 1024
- grafana_cap_net_bind_service

- name: Enable and start Grafana systemd unit
Expand Down
2 changes: 1 addition & 1 deletion tasks/preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
fail:
msg: Trying to use a port lower than 1024 without setting grafana_cap_net_bind_service.
when:
- grafana_port <= 1024
- grafana_port | int <= 1024
- not grafana_cap_net_bind_service

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

0 comments on commit 93f25a8

Please sign in to comment.