* 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>pull/1440/head
parent
e1ca4ce1e8
commit
b80854ff50
|
@ -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 New Issue