Closed MrMarvin closed 9 years ago
@nmadhok Why did you close this? os_family is indeed Debian even on Ubuntu. I'll merge this if you have no other reason for closing it.
@babilen Closed this by mistake. Wanted to merge this one since Ubuntu falls under Debian os_family
To add to my previous commit: The code for Redhat based distros was never reached. It tried to download a ".deb" on my CentOS.
@MrMarvin
{% if grains['os_family'] == 'Debian' or 'Ubuntu' %} Is totally incorrect way to compare since or Ubuntu will always be true and hence this loop will always execute. It should instead have been the following
{% if grains['os_family'] == 'Debian' or grains['os_family'] == 'Ubuntu' %}
Since Ubuntu falls under Debian family, that's the only reason i merged the pull request because of the duplication.
$var == "foo" or "bar"
seems to evaluate to "bar" which is truthy all the time... Even to check for "Ubuntu" is os_family isn't nessesary, Ubuntus os_family is "Debian".