mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
* Fix #1435: mas : Fix "invalid literal" when no app
* Add changelog fragment
* Update changelogs/fragments/1436-mas-fix-no-app-installed.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit b80854ff50)
Co-authored-by: Jean-Pierre Matsumoto <jpmat296@gmail.com>
This commit is contained in:
@@ -183,6 +183,8 @@ class Mas(object):
|
||||
|
||||
rc, raw_apps, err = self.run([command])
|
||||
rows = raw_apps.split("\n")
|
||||
if rows[0] == "No installed apps found":
|
||||
rows = []
|
||||
apps = []
|
||||
for r in rows:
|
||||
# Format: "123456789 App Name"
|
||||
|
||||
Reference in New Issue
Block a user