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

awxkit log which resource failed to import #12031

Merged

Conversation

fosterseth
Copy link
Member

SUMMARY

Give users the endpoint and name of the object that failed to import.

Before

fatal: [localhost]: FAILED! => changed=false 
  msg: |-
    Object import failed: Bad Request (400) received - {'scm_type': ['"git2" is not a valid choice.']}.
    Object import failed: Bad Request (400) received - {'scm_type': ['"git2" is not a valid choice.']}.
    Object import failed: Bad Request (400) received - {'scm_type': ['"git2" is not a valid choice.']}.

After

fatal: [localhost]: FAILED! => changed=false 
  msg: |-
    /api/v2/projects/ "Demo Project": Bad Request (400) received - {'scm_type': ['"git2" is not a valid choice.']}.
    /api/v2/projects/ "test_playbooks": Bad Request (400) received - {'scm_type': ['"git2" is not a valid choice.']}.
    /api/v2/projects/ "git_fs": Bad Request (400) received - {'scm_type': ['"git2" is not a valid choice.']}.
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
  • API
  • Collection
AWX VERSION
awx: 20.0.2.dev219+gac8204427e

@fosterseth fosterseth merged commit c931551 into ansible:devel Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants