From 6cecd7d08b1362e95c0bbb17b5a3a1b4209a9bb5 Mon Sep 17 00:00:00 2001 From: Rob van der Linde Date: Fri, 31 Mar 2023 11:54:58 +1300 Subject: [PATCH] netcmd: domain: move domain_backup.py to domain/backup.py Signed-off-by: Rob van der Linde Reviewed-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- python/samba/netcmd/domain/__init__.py | 3 ++- python/samba/netcmd/{domain_backup.py => domain/backup.py} | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) rename python/samba/netcmd/{domain_backup.py => domain/backup.py} (99%) diff --git a/python/samba/netcmd/domain/__init__.py b/python/samba/netcmd/domain/__init__.py index 690998474bf0..5edeec7cf306 100644 --- a/python/samba/netcmd/domain/__init__.py +++ b/python/samba/netcmd/domain/__init__.py @@ -101,12 +101,13 @@ ) from samba.netcmd.pso import cmd_domain_passwordsettings_pso -from samba.netcmd.domain_backup import cmd_domain_backup from samba.common import get_string from samba.trust_utils import CreateTrustedDomainRelax from samba import dsdb +from .backup import cmd_domain_backup + string_version_to_constant = { "2000": DS_DOMAIN_FUNCTION_2000, "2003": DS_DOMAIN_FUNCTION_2003, diff --git a/python/samba/netcmd/domain_backup.py b/python/samba/netcmd/domain/backup.py similarity index 99% rename from python/samba/netcmd/domain_backup.py rename to python/samba/netcmd/domain/backup.py index 9eaba7dea1da..fe667c85632a 100644 --- a/python/samba/netcmd/domain_backup.py +++ b/python/samba/netcmd/domain/backup.py @@ -36,7 +36,7 @@ from samba.netcmd import Option, CommandError from samba.dcerpc import misc, security, drsblobs from samba import Ldb -from . fsmo import cmd_fsmo_seize +from samba.netcmd.fsmo import cmd_fsmo_seize from samba.provision import make_smbconf, DEFAULTSITE from samba.upgradehelpers import update_krbtgt_account_password from samba.remove_dc import remove_dc