Bug 1730375

Summary: in hammer, report template schedule doesn't work with unique parameter --name when parameters wait and path are provided
Product: Red Hat Satellite Reporter: tstrych
Component: ReportingAssignee: Oleh Fedorenko <ofedoren>
Status: CLOSED ERRATA QA Contact: tstrych
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: apatel, inecas, kgaikwad, mbacovsk, mhulan, mshira, ofedoren, oprazak, pcreech, rabajaj
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 13:24:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description tstrych 2019-07-16 14:43:31 UTC
Description of problem:
in hammer, report template schedule doesn't work with unique parameter --name when parameters wait and path are provided

Version-Release number of selected component (if applicable):
Satellite 6.6 snap 7

How reproducible:
Always

Steps to Reproduce:
1. create test report template 
2. report-template schedule --name test --wait --path /tmp/

Actual results:
Missing arguments for 'id'

with id it works correctly
hammer report-template schedule --id <test-id>  --wait --path /tmp/
The response has been saved to /tmp/test-<date>.txt

Expected results:
hammer report-template schedule --name test --wait --path /tmp/
The response has been saved to /tmp/test-<date>.txt


Additional info:
Not sure if this is bug for hammer, but I found it here, please if I should choose another component please let me know. (future improvement)

Comment 3 Oleh Fedorenko 2019-07-18 11:14:57 UTC
Created redmine issue https://projects.theforeman.org/issues/27339 from this bug

Comment 4 Bryan Kearney 2019-08-01 20:01:57 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27339 has been resolved.

Comment 5 tstrych 2020-02-27 17:36:22 UTC
I test this with sat6.7 snap 13 (fixed in: hammer-cli-foreman-0.18.0, my sat 6.7 has hammer_cli_foreman-0.19.6) 

hammer report-template schedule --name test  --wait --path /tmp/
The response has been saved to /tmp/test-2020-02-27.text.

As I can see there was a change in suffix from .txt to .text (this change do not affect this bz in any way)

Verified

Comment 8 errata-xmlrpc 2020-04-14 13:24:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1454