|
|
|
@ -90,6 +90,10 @@ def parse():
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
'-f', '--force', action='store_true', default=False,
|
|
|
|
|
dest = 'no_questions', help=_('silent during the process'))
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
'-P', action='store_true', default=False,
|
|
|
|
|
dest = 'stdin_passwd',
|
|
|
|
|
help=_('use passwords for the users accounts from standard input'))
|
|
|
|
|
return parser
|
|
|
|
|
|
|
|
|
|
def get_view(client, method, sid, view_params):
|
|
|
|
@ -103,6 +107,7 @@ def get_view(client, method, sid, view_params):
|
|
|
|
|
def call_method(client, args, wait_thread):
|
|
|
|
|
method = args.method
|
|
|
|
|
no_questions = args.no_questions
|
|
|
|
|
stdin_passwd = args.stdin_passwd
|
|
|
|
|
view_params = get_view_params(client, method + '_view', step = None, \
|
|
|
|
|
expert = True)
|
|
|
|
|
|
|
|
|
@ -122,7 +127,7 @@ def call_method(client, args, wait_thread):
|
|
|
|
|
_print (_('Unknown parameter'), i)
|
|
|
|
|
raise Exception(1)
|
|
|
|
|
param_object, steps = collect_object(client, param_object, view, args,
|
|
|
|
|
wait_thread)
|
|
|
|
|
wait_thread,stdin_passwd=stdin_passwd)
|
|
|
|
|
if steps.label and hasattr (param_object, 'CheckOnly'):
|
|
|
|
|
param_object['CheckOnly'] = True
|
|
|
|
|
check_res = {}
|
|
|
|
|