diff options
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/netcmd/gpo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/netcmd/gpo.py b/source4/scripting/python/samba/netcmd/gpo.py index 318cc30419..ec4d82ca0a 100644 --- a/source4/scripting/python/samba/netcmd/gpo.py +++ b/source4/scripting/python/samba/netcmd/gpo.py @@ -516,8 +516,8 @@ class cmd_setlink(Command): try: msg = get_gpo_info(self.samdb, gpo=gpo)[0] except Exception, e: - raise CommandError("GPO %s does not exist" % gpo_dn, e) - gpo_dn = get_gpo_dn(self.samdb, gpo) + raise CommandError("GPO %s does not exist" % gpo, e) + gpo_dn = str(get_gpo_dn(self.samdb, gpo)) # Check if valid Container DN try: @@ -580,7 +580,7 @@ class cmd_dellink(Command): Option("-H", help="LDB URL for database or target server", type=str), ] - def run(self, container_dn, gpo_dn, H=None, sambaopts=None, credopts=None, + def run(self, container_dn, gpo, H=None, sambaopts=None, credopts=None, versionopts=None): self.lp = sambaopts.get_loadparm() |