mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Issue happening with some weird app instance name ...
This commit is contained in:
parent
fdbffe9590
commit
5c5330be3d
1 changed files with 1 additions and 0 deletions
|
@ -2345,6 +2345,7 @@ def _parse_app_instance_name(app_instance_name):
|
||||||
True
|
True
|
||||||
"""
|
"""
|
||||||
match = re_app_instance_name.match(app_instance_name)
|
match = re_app_instance_name.match(app_instance_name)
|
||||||
|
assert match, "Could not parse app instance name : %s" % app_instance_name
|
||||||
appid = match.groupdict().get('appid')
|
appid = match.groupdict().get('appid')
|
||||||
app_instance_nb = int(match.groupdict().get('appinstancenb')) if match.groupdict().get('appinstancenb') is not None else 1
|
app_instance_nb = int(match.groupdict().get('appinstancenb')) if match.groupdict().get('appinstancenb') is not None else 1
|
||||||
return (appid, app_instance_nb)
|
return (appid, app_instance_nb)
|
||||||
|
|
Loading…
Add table
Reference in a new issue