Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use isinstance API instead of type API #1066

Merged
merged 1 commit into from May 9, 2022
Merged

Conversation

Akasurde
Copy link
Member

@Akasurde Akasurde commented May 6, 2022

SUMMARY

correct way to check datatype of variable is isinstance

Signed-off-by: Abhijeet Kasurde akasurde@redhat.com

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

ansible_runner/utils/init.py

correct way to check datatype of variable is `isinstance`

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
@Akasurde Akasurde requested a review from a team as a code owner May 6, 2022 07:16
@Shrews Shrews merged commit a349921 into ansible:devel May 9, 2022
@Shrews
Copy link
Contributor

Shrews commented May 9, 2022

Please backport to 2.2 and 2.1 (if appropriate).

@Akasurde Akasurde deleted the type_check branch May 9, 2022 14:12
Akasurde added a commit to Akasurde/ansible-runner that referenced this pull request May 9, 2022
correct way to check datatype of variable is `isinstance`

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit a349921)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants