samba-tool: Fix indentation
authorAmitay Isaacs <amitay@gmail.com>
Tue, 3 Jul 2012 01:27:21 +0000 (11:27 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 3 Jul 2012 05:20:41 +0000 (15:20 +1000)
Thanks to Denis Bonnenfant <denis.bonnenfant@diderot.org> for patch.

source4/scripting/python/samba/netcmd/group.py
source4/scripting/python/samba/samdb.py

index 42c236bc95e831d09f93c65f45fc70eecd109247..3a5ef0136c0eab8cc4cd7ae7fd0565baba910560 100644 (file)
@@ -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)
index 2d746de00fed62ea551255f5939976e9d31f7bc6..1190516e1e64b43aff89e3971cac5340768cf659 100644 (file)
@@ -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