Actions
Issue #1073
closedwrong error msg on delete rpm from nonexisting repo
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.7.0 Beta
Platform Release:
2.8.0
OS:
RHEL 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:
Description
If to delete a rpm from a nonexisting repo, there is no error message that such a repo doesn't exist. Instead it says "Nth was found". A user can take it as a rpm s/he wants to delete doesn't exist. I expect a msg that a repo is not found.
>> rpm -qa pulp-server
pulp-server-2.7.0-0.3.beta.el7.noarch
>> pulp-admin rpm repo list
+----------------------------------------------------------------------+
RPM Repositories
+----------------------------------------------------------------------+
Id: zoo_repo
Display Name: zoo_repo
Description: None
Content Unit Counts:
Erratum: 4
Package Category: 1
Package Group: 2
Rpm: 32
>> pulp-admin rpm repo remove rpm --repo-id zoo --str-eq='name=dog'
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Nothing found that matches the given criteria.
I expect error that repo is not found as for
>> pulp-admin rpm repo sync run --repo-id zoo
+----------------------------------------------------------------------+
Synchronizing Repository [zoo]
+----------------------------------------------------------------------+
The following resource(s) could not be found:
zoo (repo_id)
Actions