Project

General

Profile

Actions

Bug #20320

closed

Cannot delete scap-content via name from CLI

Added by Marek Hulán over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

Actions #1

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
Actions #2

Updated by Marek Hulán over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Marek Hulán over 7 years ago

  • Translation missing: en.field_release set to 283
Actions

Also available in: Atom PDF