Bug #20320
closedCannot delete scap-content via name from CLI
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1471798
Description of problem:
Version-Release number of selected component (if applicable):
Satellite 6.3.0 snap7
How reproducible:
Always
Steps to Reproduce:
1.Create a scap-content
2.try to delete it using given name
3.
hammer> scap-content delete --help
Usage:
scap-content delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
hammer> scap-content list
---|--------------------------------
ID | TITLE
---|--------------------------------
6 | apple
1 | Red Hat firefox default content
2 | Red Hat jre default content
3 | Red Hat rhel6 default content
4 | Red Hat rhel7 default content
---|--------------------------------
Actual results:
hammer> scap-content delete --name="apple"
Could not delete Scap content:
Error: 400 Bad Request
hammer> scap-content delete --name "apple"
Could not delete Scap content:
Error: 400 Bad Request
Expected results:
scap-content should be deleted
Additional info:
It can be deleted via ID parameter
hammer> scap-content delete --id 6
Scap content deleted
Updated by Marek Hulán over 7 years ago
- Subject changed from Cannot delete scap-content via name from CLI to Cannot delete scap-content via name from CLI
- Status changed from New to Ready For Testing
- Assignee set to Marek Hulán
- Pull request https://github.com/theforeman/hammer_cli_foreman_openscap/pull/9 added
Updated by Marek Hulán over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer_cli_foreman_openscap|140e3ad52789aa219dba9dca78e816691aaf7a18.
Updated by Marek Hulán over 7 years ago
- Translation missing: en.field_release set to 283