Skip to content

Commit

Permalink
Add travis test image python3
Browse files Browse the repository at this point in the history
Use items function instead of iteritems
  • Loading branch information
ernestas-poskus committed Sep 16, 2017
1 parent 99fb6ff commit 152d9f0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ env:
- distro: ernestasposkus/ubuntu1604
init: /lib/systemd/systemd
run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
- distro: ernestasposkus/python3
init: /lib/systemd/systemd
run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"

services:
- docker
Expand Down
2 changes: 1 addition & 1 deletion templates/alert_manager.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=network.target
Wants=network.target

[Service]
ExecStart={{ prometheus_install_dir }}/{{ prometheus_alert_manager_archive }}/alertmanager {% for key, value in prometheus_alert_manager_service_config.iteritems() if value is not none %}-{{ key }}={{ value }} {% endfor %}
ExecStart={{ prometheus_install_dir }}/{{ prometheus_alert_manager_archive }}/alertmanager {% for key, value in prometheus_alert_manager_service_config.items() if value is not none %}-{{ key }}={{ value }} {% endfor %}

Restart=always
RestartSec=20
Expand Down
2 changes: 1 addition & 1 deletion templates/node_exporter.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=network.target
Wants=network.target

[Service]
ExecStart={{ prometheus_install_dir }}/{{ prometheus_node_exporter_archive }}/node_exporter {% for key, value in prometheus_node_exporter_service_config.iteritems() if value is not none %}-{{ key }}={{ value }} {% endfor %}
ExecStart={{ prometheus_install_dir }}/{{ prometheus_node_exporter_archive }}/node_exporter {% for key, value in prometheus_node_exporter_service_config.items() if value is not none %}-{{ key }}={{ value }} {% endfor %}

Restart=always
RestartSec=20
Expand Down
2 changes: 1 addition & 1 deletion templates/prometheus.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=network.target
Wants=network.target

[Service]
ExecStart={{ prometheus_install_dir }}/{{ prometheus_archive }}/prometheus {% for key, value in prometheus_service_config.iteritems() if value is not none %}-{{ key }}={{ value }} {% endfor %}
ExecStart={{ prometheus_install_dir }}/{{ prometheus_archive }}/prometheus {% for key, value in prometheus_service_config.items() if value is not none %}-{{ key }}={{ value }} {% endfor %}

Restart=always
RestartSec=20
Expand Down

0 comments on commit 152d9f0

Please sign in to comment.