mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 19:50:25 -07:00
replace type() with isinstance() (#5541)
Replace all use of type() with isintance() Addresses https://github.com/ansible/ansible/issues/18310
This commit is contained in:
parent
2744fde7c9
commit
06e1141106
7 changed files with 17 additions and 17 deletions
|
@ -450,10 +450,10 @@ def main():
|
|||
|
||||
value_list = ()
|
||||
|
||||
if type(value_in) is str:
|
||||
if isinstance(value_in, str):
|
||||
if value_in:
|
||||
value_list = sorted([s.strip() for s in value_in.split(',')])
|
||||
elif type(value_in) is list:
|
||||
elif isinstance(value_in, list):
|
||||
value_list = sorted(value_in)
|
||||
|
||||
if zone_in[-1:] != '.':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue