Skip to content

Commit

Permalink
Properly detect Amazon AMI's >= 2014.9. Fixes #468.
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Sep 25, 2014
1 parent c8cee3b commit 4daf785
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bootstrap-salt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,10 @@ __gather_linux_system_info() {
rv="$(__unquote_string "$(grep '^VERSION_ID=' /etc/os-release | sed -e 's/^VERSION_ID=\(.*\)$/\1/g')")"
[ "${rv}" != "" ] && v=$(__parse_version_string "$rv") || v=""
case $(echo "${nn}" | tr '[:upper:]' '[:lower:]') in
amzn )
# Amazon AMI's after 2014.9 match here
n="Amazon Linux AMI"
;;
arch )
n="Arch Linux"
v="" # Arch Linux does not provide a version.
Expand Down

0 comments on commit 4daf785

Please sign in to comment.