diff options
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/netcmd/gpo.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/netcmd/gpo.py b/source4/scripting/python/samba/netcmd/gpo.py index 5169085635..26b2e8c561 100644 --- a/source4/scripting/python/samba/netcmd/gpo.py +++ b/source4/scripting/python/samba/netcmd/gpo.py @@ -1048,13 +1048,11 @@ class cmd_del(Command): # Check if valid GPO try: - get_gpo_info(self.samdb, gpo=gpo)[0] + msg = get_gpo_info(self.samdb, gpo=gpo)[0] + unc_path = msg['gPCFileSysPath'][0] except Exception: raise CommandError("GPO '%s' does not exist" % gpo) - realm = self.lp.get('realm') - unc_path = "\\\\%s\\sysvol\\%s\\Policies\\%s" % (realm, realm, gpo) - # Connect to DC over SMB [dom_name, service, sharepath] = parse_unc(unc_path) try: |