Project

General

Profile

Actions

Bug #22451

closed

Admin logging --dry-run returns error for every supported component

Added by Lukas Zapletal about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Description of problem:
when attempting to pass the --dry-run or -n flag, the command will present the following error. This is true for all accepted components.

[root@rhsm-qe-1 /]# hammer admin logging -a -d -n
Error: Unknown action ensure_line_is_present for component postgresql

Version-Release number of selected component (if applicable):
Satellite 6.2.1 Snap 1.2

How reproducible:
Always

Steps to Reproduce:
1. use the hammer admin logging command and pass the -n or --dry-run flag

Actual results:
[root@rhsm-qe-1 /]# hammer admin logging -c postgresql -d -n
Error: Unknown action ensure_line_is_present for component postgresql

[root@rhsm-qe-1 /]# hammer admin logging -c postgresql -d -n
Error: Unknown action ensure_line_is_present for component postgresql

[root@rhsm-qe-1 /]# hammer admin logging -c proxy -d -n
Error: Unknown action ensure_line_is_present for component proxy

[root@rhsm-qe-1 /]# hammer admin logging -c puppet -d -n
Error: Unknown action ensure_line_is_present for component puppet

[root@rhsm-qe-1 /]# hammer admin logging -c dhcpd -d -n
Error: Unknown action create_file for component dhcpd

[root@rhsm-qe-1 /]# hammer admin logging -c named -d -n
Error: Unknown action run_command for component named

[root@rhsm-qe-1 /]# hammer admin logging -c tftp -d -n
Error: Unknown action ensure_line_is_present for component tftp

[root@rhsm-qe-1 /]# hammer admin logging -c qpidd -d -n
Error: Unknown action ensure_line_is_present for component qpidd

[root@rhsm-qe-1 /]# hammer admin logging -c tomcat -d -n
Error: Unknown action ensure_line_is_present for component tomcat

[root@rhsm-qe-1 /]# hammer admin logging -c pulp -d -n
Error: Unknown action create_file for component pulp

[root@rhsm-qe-1 /]# hammer admin logging -c virt-who -d -n
Error: Unknown action ensure_line_is_present for component virt-who

Expected results:
No error is returned and the command works correctly.

Actions #1

Updated by Lukas Zapletal about 6 years ago

  • Status changed from New to Closed
  • Pull request https://github.com/theforeman/hammer-cli-foreman-admin/pull/8 added
Actions

Also available in: Atom PDF