mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Properly detect Amazon AMI's >= 2014.9. Fixes #468.
This commit is contained in:
parent
c8cee3b122
commit
4daf78561c
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue