fix Amazon system-release version parsing (#51521)

Previously it was assumed that the Amazon system-release
number was the final value of the string.  This isn't always
the case.  Some releases have the name at the end.

  Amazon Linux release 2
  Amazon Linux release 2 (Karoo)

Fix by instead looking for a number in the string.

Fixes #48823
This commit is contained in:
Jeremiah Mahler 2019-02-07 14:58:34 -08:00 committed by ansibot
commit ffbc9d99de
2 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- Fix Amazon system-release version parsing (https://github.com/ansible/ansible/issues/48823)