mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-20 01:11:26 -07:00
Use isinstance() instead of type() (#7501)
* Replace type comparisons with isinstance() checks. * Add changelog.
This commit is contained in:
parent
0304989392
commit
48e860be20
4 changed files with 5 additions and 3 deletions
|
@ -432,7 +432,7 @@ class OcapiUtils(object):
|
|||
else:
|
||||
return response
|
||||
details = response["data"]["Status"].get("Details")
|
||||
if type(details) is str:
|
||||
if isinstance(details, str):
|
||||
details = [details]
|
||||
health_list = response["data"]["Status"]["Health"]
|
||||
return_value = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue