mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] List arguments not correctly managed
This commit is contained in:
parent
312429d92a
commit
031ff99223
1 changed files with 3 additions and 2 deletions
|
@ -215,6 +215,7 @@ def is_unit_operation(entities='app,domain,service,user', exclude='auth,password
|
||||||
if len(args) > 0:
|
if len(args) > 0:
|
||||||
from inspect import getargspec
|
from inspect import getargspec
|
||||||
keys = getargspec(func).args
|
keys = getargspec(func).args
|
||||||
|
if 'uo' in keys:
|
||||||
keys.remove('uo')
|
keys.remove('uo')
|
||||||
for k, arg in enumerate(args):
|
for k, arg in enumerate(args):
|
||||||
kwargs[keys[k]] = arg
|
kwargs[keys[k]] = arg
|
||||||
|
@ -231,7 +232,7 @@ def is_unit_operation(entities='app,domain,service,user', exclude='auth,password
|
||||||
related_to.append((entity_type, kwargs[entity]))
|
related_to.append((entity_type, kwargs[entity]))
|
||||||
else:
|
else:
|
||||||
for x in kwargs[entity]:
|
for x in kwargs[entity]:
|
||||||
related_to.append((entity_type, kwargs[x]))
|
related_to.append((entity_type, x))
|
||||||
|
|
||||||
context = kwargs.copy()
|
context = kwargs.copy()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue