diff options
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/netcmd/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/__init__.py b/source4/scripting/python/samba/netcmd/__init__.py index 528262ec9e..3dcf019a5f 100644 --- a/source4/scripting/python/samba/netcmd/__init__.py +++ b/source4/scripting/python/samba/netcmd/__init__.py @@ -79,7 +79,8 @@ class Command(object): kwargs = dict(opts.__dict__) for option_group in parser.option_groups: for option in option_group.option_list: - del kwargs[option.dest] + if option.dest is not None: + del kwargs[option.dest] kwargs.update(optiongroups) min_args = 0 max_args = 0 |