summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-07-03 11:26:41 +1000
committerAmitay Isaacs <amitay@gmail.com>2012-07-03 15:20:41 +1000
commite93ed5f69abca6e48dbb754acadfafc8b6dd716e (patch)
tree8d54a13c5f043c76ce0a30d4ee31b3d8512565de /source4/scripting
parent963f0df179720240a8a6072dd7960aefd654ff5a (diff)
downloadsamba-e93ed5f69abca6e48dbb754acadfafc8b6dd716e.tar.gz
samba-e93ed5f69abca6e48dbb754acadfafc8b6dd716e.tar.bz2
samba-e93ed5f69abca6e48dbb754acadfafc8b6dd716e.zip
samba-tool: gpo: Use gpo (id) instead of gpo_dn (DN)
Thanks to Denis Bonnenfant <denis.bonnenfant@diderot.org> for patch.
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/netcmd/gpo.py6
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()