python: lint: remove unused imports in claims and gmsa commands
authorRob van der Linde <rob@catalyst.net.nz>
Thu, 28 Mar 2024 03:09:44 +0000 (16:09 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 8 Apr 2024 03:00:39 +0000 (03:00 +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/auth/policy/policy.py
python/samba/netcmd/domain/claim/claim_type.py
python/samba/netcmd/service_account/group_msa_membership.py
python/samba/netcmd/service_account/service_account.py

index fc06fd27705a2241d04b25e5ca3da1a2744b3bd5..5da74734f9d9dc2479442eee5cba60c7bc010493 100644 (file)
@@ -22,8 +22,7 @@
 
 import samba.getopt as options
 from samba.domain.models import (MAX_TGT_LIFETIME, MIN_TGT_LIFETIME,
-                                 AuthenticationPolicy, AuthenticationSilo,
-                                 Group, StrongNTLMPolicy)
+                                 AuthenticationPolicy, StrongNTLMPolicy)
 from samba.domain.models.exceptions import ModelError
 from samba.netcmd import Command, CommandError, Option
 from samba.netcmd.validators import Range
index 312742fede64f4e1fab34023be35cbc350bceb33..fffc100e103fa51e62df9e51f30901daac11b625 100644 (file)
@@ -21,7 +21,7 @@
 #
 
 import samba.getopt as options
-from samba.domain.models import AttributeSchema, ClaimType, ClassSchema, ValueType
+from samba.domain.models import AttributeSchema, ClaimType, ClassSchema
 from samba.domain.models.exceptions import ModelError
 from samba.netcmd import Command, CommandError, Option, SuperCommand
 
index 34e7fa45b5942d160aac9ccb39b28ae4767b8c59..5a8291b4556774277388027196d23a34fd642549 100644 (file)
@@ -19,7 +19,7 @@
 # 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 samba.domain.models import Group, GroupManagedServiceAccount, Model, User
+from samba.domain.models import GroupManagedServiceAccount, Model, User
 from samba.domain.models.exceptions import ModelError
 from samba.getopt import CredentialsOptions, HostOptions, Option, SambaOptions
 from samba.netcmd import Command, CommandError, SuperCommand
index f492c6ba1d7338e0a8602c79a14b3712fa0e4f63..8ad6cdd72251a755d4d91cb67f7e0885078b255f 100644 (file)
@@ -20,9 +20,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from samba.domain.models import (AccountType, Computer, Group,
-                                 GroupManagedServiceAccount,
-                                 SupportedEncryptionTypes, User)
+from samba.domain.models import GroupManagedServiceAccount
 from samba.domain.models.exceptions import ModelError
 from samba.getopt import CredentialsOptions, HostOptions, Option, SambaOptions
 from samba.netcmd import Command, CommandError