diff options
author | Giampaolo Lauria <lauria2@yahoo.com> | 2011-11-01 15:21:32 -0400 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-11-03 16:53:16 +0100 |
commit | fe6913ada3117eb38d46f57dbca2afba5a179696 (patch) | |
tree | c8956d4214abb779737badb58e1eb7a3315b0268 | |
parent | 64e7e448fb476952a02c46a524f13586cea71fae (diff) | |
download | samba-fe6913ada3117eb38d46f57dbca2afba5a179696.tar.gz samba-fe6913ada3117eb38d46f57dbca2afba5a179696.tar.bz2 samba-fe6913ada3117eb38d46f57dbca2afba5a179696.zip |
samba-tool: Fix short description and error msgs in domain level
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Nov 3 16:53:16 CET 2011 on sn-devel-104
-rw-r--r-- | source4/scripting/python/samba/netcmd/domain.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py index 8631d992d8..10bcfda7eb 100644 --- a/source4/scripting/python/samba/netcmd/domain.py +++ b/source4/scripting/python/samba/netcmd/domain.py @@ -77,7 +77,7 @@ class cmd_domain_export_keytab(Command): class cmd_domain_join(Command): - """Joins domain as either member or backup domain controller *""" + """Joins domain as either member or backup domain controller""" synopsis = "%prog <dnsdomain> [DC|RODC|MEMBER|SUBDOMAIN] [options]" @@ -133,7 +133,7 @@ class cmd_domain_join(Command): site=site, netbios_name=netbios_name, netbios_domain=netbios_domain, targetdir=targetdir) return else: - raise CommandError("Invalid role %s (possible values: MEMBER, DC, RODC)" % role) + raise CommandError("Invalid role '%s' (possible values: MEMBER, DC, RODC, SUBDOMAIN)" % role) @@ -264,7 +264,7 @@ class cmd_domain_level(Command): new_level_domain = DS_DOMAIN_FUNCTION_2008_R2 if new_level_domain <= level_domain and level_domain_mixed == 0: - raise CommandError("Domain function level can't be smaller equal to the actual one!") + raise CommandError("Domain function level can't be smaller than or equal to the actual one!") if new_level_domain > min_level_dc: raise CommandError("Domain function level can't be higher than the lowest function level of a DC!") @@ -319,7 +319,7 @@ class cmd_domain_level(Command): elif forest_level == "2008_R2": new_level_forest = DS_DOMAIN_FUNCTION_2008_R2 if new_level_forest <= level_forest: - raise CommandError("Forest function level can't be smaller equal to the actual one!") + raise CommandError("Forest function level can't be smaller than or equal to the actual one!") if new_level_forest > level_domain: raise CommandError("Forest function level can't be higher than the domain function level(s). Please raise it/them first!") m = ldb.Message() @@ -332,7 +332,7 @@ class cmd_domain_level(Command): msgs.append("All changes applied successfully!") self.message("\n".join(msgs)) else: - raise CommandError("Wrong argument '%s'!" % subcommand) + raise CommandError("invalid argument: '%s' (choose from 'show', 'raise')" % subcommand) |