sensu / monitoring-plugins

Sensu Assets for the monitoring-plugins.org project
https://monitoring-plugins.org
5 stars 17 forks source link

fix Amazon Linux and Ubuntu asset filters #13

Closed toozej closed 4 years ago

toozej commented 4 years ago

Fixes incorrect asset filters in bonsai.yml

1) Amazon Linux 1 uses versions of the format YYYY.MM starting from 2011 and going until 2018, thus we are matching if the YYYY portion of platform_version contains '201'. Shout out to @nixwiz and @cwjohnston for helping me with this issue in https://sensucommunity.slack.com/archives/C68LV5M9U/p1584383938101700

2) Ubuntu 16.04 and 18.04 should use platform instead of platform_family