mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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>
This commit is contained in:
parent
e1ca4ce1e8
commit
b80854ff50
2 changed files with 5 additions and 0 deletions
3
changelogs/fragments/1436-mas-fix-no-app-installed.yml
Normal file
3
changelogs/fragments/1436-mas-fix-no-app-installed.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- "mas - fix ``invalid literal`` when no app can be found (https://github.com/ansible-collections/community.general/pull/1436)."
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue