From: Frank Brehm Date: Wed, 14 Jun 2023 13:04:42 +0000 (+0200) Subject: Fixed typo. X-Git-Tag: 0.10.0^2~12 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=bd699b2c01fd54b80d09a0722bade75509369611;p=pixelpark%2Fpp-admin-tools.git Fixed typo. --- 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.