gpo: Pass necessary parameters to rsop
authorDavid Mulder <dmulder@suse.com>
Thu, 27 Aug 2020 19:25:44 +0000 (13:25 -0600)
committerJeremy Allison <jra@samba.org>
Wed, 2 Sep 2020 09:11:30 +0000 (09:11 +0000)
commit11f97148bb57eecdb3e34e33901a4bb7a2dd7755
treec0ca285ef4b496aedc0b9ad06762225804169688
parentdff01a5edf69b10e72c64ab63de1d4aeedb747ce
gpo: Pass necessary parameters to rsop

These parameters were missed by mistake when exts
were modified to be initialized within the rsop
command. Fixes an exception thrown when executing
samba-gpupdate --rsop:

Traceback (most recent call last):
  File "/usr/sbin/samba-gpupdate", line 99, in <module>
    rsop(lp, creds, gp_extensions, opts.target)
  File "/usr/lib64/python3.8/site-packages/samba/gpclass.py", line 512, in rsop
    ext = ext(logger, lp, creds, store)
NameError: name 'logger' is not defined

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/gpclass.py
selftest/knownfail.d/gpo [deleted file]
source4/scripting/bin/samba-gpupdate