1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

gpoa: Fix argparser with default username as machine name

This commit is contained in:
Evgeny Sinelnikov 2019-11-24 03:59:49 +04:00
parent 48d5e62598
commit 5eeadbeb06

View File

@ -332,6 +332,7 @@ def parse_arguments():
arguments = argparse.ArgumentParser(description='Generate configuration out of parsed policies')
arguments.add_argument('user',
type=str,
nargs='?',
default=get_machine_name(),
help='Domain username ({}) to parse policies for'.format(get_machine_name()))
arguments.add_argument('--dc',