mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Add testcases for github_issue (#26309)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
c9b74a3af3
commit
a2c8481395
4 changed files with 77 additions and 1 deletions
|
@ -103,7 +103,7 @@ def main():
|
|||
result = dict()
|
||||
|
||||
gh_obj = github3.issue(organization, repo, issue)
|
||||
if isinstance(gh_obj, github3.null.NullObject):
|
||||
if gh_obj is None:
|
||||
module.fail_json(msg="Failed to get details about issue specified. "
|
||||
"Please check organization, repo and issue "
|
||||
"details and try again.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue