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

fixes #5742/BZ1098152 - fix consumer action to display failure message #4222

Merged
merged 1 commit into from Jun 9, 2014

Conversation

bbuckingham
Copy link
Member

This commit contains a minor change so that if the user provides an
invalid package or package group name as part of an action
(e.g. install/update/remove), the error message returned by
pulp is displayed.

Without this change, the user will get a stack trace as are no
'resolved' or 'deps' information in the result.

With this change the user would see the following messages as
provided by pulp:

  1. installing an invalid package:

:invalidpackagename--.: No package(s) available to install

  1. installing an invalid package group:

No Group named invalidgroupname exists

… message

This commit contains a minor change so that if the user provides an
invalid package or package group name as part of an action
(e.g. install/update/remove), the error message returned by
pulp is displayed.

Without this change, the user will get a stack trace as are no
'resolved' or 'deps' information in the result.

With this change the user would see the following messages as
provided by pulp:

1. installing an invalid package:

*:invalidpackagename-*-*.*: No package(s) available to install

2. installing an invalid package group:

No Group named invalidgroupname exists
@mccun934
Copy link
Member

mccun934 commented Jun 9, 2014

ACK

tested this and it works great. catches bad names for packages and groups

no effect on correctly named items (still adds/removes fine)

bbuckingham added a commit that referenced this pull request Jun 9, 2014
fixes #5742/BZ1098152 - fix consumer action to display failure message
@bbuckingham bbuckingham merged commit 473b660 into Katello:master Jun 9, 2014
@bbuckingham bbuckingham deleted the issue-5742 branch June 9, 2014 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants