mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-05 07:54:00 -07:00
PEP 8 W291 whitespace cleanup.
This commit is contained in:
parent
95789f3949
commit
d913f69ba1
166 changed files with 493 additions and 565 deletions
|
@ -24,7 +24,7 @@ from ansible.compat.six import string_types
|
|||
def pct_to_int(value, num_items, min_value=1):
|
||||
'''
|
||||
Converts a given value to a percentage if specified as "x%",
|
||||
otherwise converts the given value to an integer.
|
||||
otherwise converts the given value to an integer.
|
||||
'''
|
||||
if isinstance(value, string_types) and value.endswith('%'):
|
||||
value_pct = int(value.replace("%",""))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue