From bd699b2c01fd54b80d09a0722bade75509369611 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 14 Jun 2023 15:04:42 +0200 Subject: [PATCH] Fixed typo. --- lib/pp_admintools/app/mirror_ldap.py | 4 ++-- lib/pp_admintools/argparse_actions.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pp_admintools/app/mirror_ldap.py b/lib/pp_admintools/app/mirror_ldap.py index 19079d5..dbd4008 100644 --- a/lib/pp_admintools/app/mirror_ldap.py +++ b/lib/pp_admintools/app/mirror_ldap.py @@ -30,7 +30,7 @@ from .ldap import BaseLdapApplication from .ldap import LdapAppError from .. import pp from ..argparse_actions import LimitedFloatOptionAction -from ..argparse_actions import NonNegativeItegerOptionAction +from ..argparse_actions import NonNegativeIntegerOptionAction from ..config.mirror_ldap import MirrorLdapConfiguration from ..xlate import XLATOR @@ -125,7 +125,7 @@ class MirrorLdapApplication(BaseLdapApplication): app_group.add_argument( '-L', '--limit', dest='limit', type=int, metavar=_('NUMBER'), - action=NonNegativeItegerOptionAction, + action=NonNegativeIntegerOptionAction, help=_( 'Limiting the mirroring to the first NUMBER entries. ' 'This option is valid only in simulation mode.'), diff --git a/lib/pp_admintools/argparse_actions.py b/lib/pp_admintools/argparse_actions.py index 05a8709..3e8d739 100644 --- a/lib/pp_admintools/argparse_actions.py +++ b/lib/pp_admintools/argparse_actions.py @@ -60,7 +60,7 @@ class PortOptionAction(argparse.Action): setattr(namespace, self.dest, port) # ============================================================================= -class NonNegativeItegerOptionAction(argparse.Action): +class NonNegativeIntegerOptionAction(argparse.Action): """ It's an argparse action class to ensure a positive integer value. -- 2.39.5