diff options
| author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2022-05-05 21:16:17 +1200 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2022-05-10 05:19:34 +0000 |
| commit | b481ceaa0db83d9662bc5b7e737838d02f0941f1 (patch) | |
| tree | c96d302c2f587659daa42aa308019163cb86960a /python | |
| parent | ed9d415c08d91d3c16ec7bd35fd8387fbe40df43 (diff) | |
| download | samba-b481ceaa0db83d9662bc5b7e737838d02f0941f1.tar.gz samba-b481ceaa0db83d9662bc5b7e737838d02f0941f1.tar.bz2 samba-b481ceaa0db83d9662bc5b7e737838d02f0941f1.zip | |
samba-tool: Don't try to delete local_tdo_handle twice.
This code is unreachable, as local_tdo_handle has already been deleted
and set to None earlier.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/netcmd/domain.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py index 4d8e5b7387e..2a548ed1ad4 100644 --- a/python/samba/netcmd/domain.py +++ b/python/samba/netcmd/domain.py @@ -2920,14 +2920,6 @@ class cmd_domain_trust_delete(DomainTrustCommand): except RuntimeError as error: self.outf.write("%s\n" % self.RemoteRuntimeError(self, error, "DeleteObject() failed")) - if local_tdo_handle is not None: - try: - local_lsa.DeleteObject(local_tdo_handle) - local_tdo_handle = None - self.outf.write("LocalTDO deleted.\n") - except RuntimeError as error: - self.outf.write("%s\n" % self.LocalRuntimeError(self, error, "DeleteObject() failed")) - return |
