diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-07-03 11:27:21 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2012-07-03 15:20:41 +1000 |
commit | 807ff1e3432d85e19d753909c1cdd93a52cbc296 (patch) | |
tree | c16fd195db33cfefc67542ea8543b907c184b794 /source4/scripting | |
parent | e93ed5f69abca6e48dbb754acadfafc8b6dd716e (diff) | |
download | samba-807ff1e3432d85e19d753909c1cdd93a52cbc296.tar.gz samba-807ff1e3432d85e19d753909c1cdd93a52cbc296.tar.bz2 samba-807ff1e3432d85e19d753909c1cdd93a52cbc296.zip |
samba-tool: Fix indentation
Thanks to Denis Bonnenfant <denis.bonnenfant@diderot.org> for patch.
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/netcmd/group.py | 4 | ||||
-rw-r--r-- | source4/scripting/python/samba/samdb.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/netcmd/group.py b/source4/scripting/python/samba/netcmd/group.py index 42c236bc95..3a5ef0136c 100644 --- a/source4/scripting/python/samba/netcmd/group.py +++ b/source4/scripting/python/samba/netcmd/group.py @@ -96,9 +96,9 @@ Example2 adds a new distribution group to the local server. The command is run group_type=None, description=None, mail_address=None, notes=None): if (group_type or "Security") == "Security": - gtype = security_group.get(group_scope, GTYPE_SECURITY_GLOBAL_GROUP) + gtype = security_group.get(group_scope, GTYPE_SECURITY_GLOBAL_GROUP) else: - gtype = distribution_group.get(group_scope, GTYPE_DISTRIBUTION_GLOBAL_GROUP) + gtype = distribution_group.get(group_scope, GTYPE_DISTRIBUTION_GLOBAL_GROUP) lp = sambaopts.get_loadparm() creds = credopts.get_credentials(lp, fallback_machine=True) diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index 2d746de00f..1190516e1e 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -839,8 +839,8 @@ accountExpires: %u try: seq = super(SamDB, self).sequence_number(seq_type) except: - self.transaction_cancel() - raise + self.transaction_cancel() + raise else: self.transaction_commit() return seq |