Fix my previous commit /o\
This commit is contained in:
parent
a88e5eef3e
commit
549724942d
2 changed files with 14 additions and 4 deletions
|
@ -37,8 +37,13 @@ def _convert_v1_manifest_to_v2(app_path):
|
|||
"ram.runtime": "50M"
|
||||
}
|
||||
|
||||
maintainer = manifest.get("maintainer", {}).get("name")
|
||||
manifest["maintainers"] = [maintainer] if maintainer else []
|
||||
maintainers = manifest.get("maintainer", {})
|
||||
if isinstance(maintainers, list):
|
||||
maintainers = [m['name'] for m in maintainers]
|
||||
else:
|
||||
maintainers = [maintainers["name"]] if maintainers.get("name") else []
|
||||
|
||||
manifest["maintainers"] = maintainers
|
||||
|
||||
install_questions = manifest["arguments"]["install"]
|
||||
manifest["install"] = {}
|
||||
|
|
|
@ -24,8 +24,13 @@ def convert_v1_manifest_to_v2_for_catalog(manifest):
|
|||
"ram": {"build": "50M", "runtime": "10M"}
|
||||
}
|
||||
|
||||
maintainer = manifest.get("maintainer", {}).get("name")
|
||||
manifest["maintainers"] = [maintainer] if maintainer else []
|
||||
maintainers = manifest.get("maintainer", {})
|
||||
if isinstance(maintainers, list):
|
||||
maintainers = [m['name'] for m in maintainers]
|
||||
else:
|
||||
maintainers = [maintainers["name"]] if maintainers.get("name") else []
|
||||
|
||||
manifest["maintainers"] = maintainers
|
||||
|
||||
install_questions = manifest["arguments"]["install"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue