]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
netcmd: domain: move samba3upgrade command to domain/samba3upgrade.py
authorRob van der Linde <rob@catalyst.net.nz>
Fri, 31 Mar 2023 00:30:17 +0000 (13:30 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 31 Mar 2023 07:25:32 +0000 (07:25 +0000)
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/domain/__init__.py
python/samba/netcmd/domain/samba3upgrade.py [new file with mode: 0644]

index ae6936e6307c096e2d9a132b913b32dfef647597..6b0383a756fb4e4578e248e4b4ff4427a4f7fed0 100644 (file)
@@ -71,15 +71,7 @@ from .leave import cmd_domain_leave
 from .level import cmd_domain_level
 from .passwordsettings import cmd_domain_passwordsettings
 from .provision import cmd_domain_provision
-
-
-class cmd_domain_samba3upgrade(cmd_domain_classicupgrade):
-    __doc__ = cmd_domain_classicupgrade.__doc__
-
-    # This command is present for backwards compatibility only,
-    # and should not be shown.
-
-    hidden = True
+from .samba3upgrade import cmd_domain_samba3upgrade
 
 
 class LocalDCCredentialsOptions(options.CredentialsOptions):
diff --git a/python/samba/netcmd/domain/samba3upgrade.py b/python/samba/netcmd/domain/samba3upgrade.py
new file mode 100644 (file)
index 0000000..67f4b42
--- /dev/null
@@ -0,0 +1,34 @@
+# domain management - domain samba3upgrade
+#
+# Copyright Matthias Dieter Wallnoefer 2009
+# Copyright Andrew Kroeger 2009
+# Copyright Jelmer Vernooij 2007-2012
+# Copyright Giampaolo Lauria 2011
+# Copyright Matthieu Patou <mat@matws.net> 2011
+# Copyright Andrew Bartlett 2008-2015
+# Copyright Stefan Metzmacher 2012
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+
+from .classicupgrade import cmd_domain_classicupgrade
+
+
+class cmd_domain_samba3upgrade(cmd_domain_classicupgrade):
+    __doc__ = cmd_domain_classicupgrade.__doc__
+
+    # This command is present for backwards compatibility only,
+    # and should not be shown.
+
+    hidden = True