Skip to content

Commit

Permalink
fix(pytoml): the Centos 8 distribution should install python3-pytoml
Browse files Browse the repository at this point in the history
  • Loading branch information
baby-gnu committed Mar 9, 2020
1 parent 266f67c commit 2eaba15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions telegraf/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@
{%- do telegraf.update({'toml_pkg': 'python2-pytoml'}) %}
{%- endif %}
{%- elif grains.pythonversion[0] == 3 %}
{%- if osfinger in ['CentOS Linux-8'] %}
{%- do telegraf.update({'toml_pkg': 'python3-toml'}) %}
{%- elif osfinger in ['CentOS Linux-7'] %}
{%- if osfinger in ['CentOS Linux-7'] %}
{%- do telegraf.update({'toml_pkg': 'python36-pytoml'}) %}
{%- else %}
{%- do telegraf.update({'toml_pkg': 'python3-pytoml'}) %}
Expand Down

0 comments on commit 2eaba15

Please sign in to comment.