Bug 2222938 - [DDF] The hammer command is not correct.
Summary: [DDF] The hammer command is not correct.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.12.0
Hardware: All
OS: All
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Adam Lazik
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-14 14:23 UTC by Direct Docs Feedback
Modified: 2023-07-25 14:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-25 14:01:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-18959 0 None None None 2023-07-14 14:24:48 UTC

Description Direct Docs Feedback 2023-07-14 14:23:51 UTC
The hammer command mentioned in the documentation is not correct.

Instead of "Content_View_Version_ID" it should be "Content_View_ID"
We use "Content_View_Version_ID" when we do not wish to enable "Always update to latest version" for Content View

Organisation option is missing because of which getting below error.

~~~
[root@rhsat612 ~]# hammer content-view component add \
--component-content-view-id XX \ 
--latest \ 
--composite-content-view "Example_Composite_Content_View" 
Could not add the component: 
Error: Missing options to search organization.
~~~

Below is the command should be used with and without "Always update to latest version" option for Content View.

Hammer command to add Content View in Composite Content View with "Always update to latest version" enabled.

~~~
# hammer content-view component add \
--component-content-view-id Content_View_ID \ 
--latest \ 
--composite-content-view "Example_Composite_Content_View" \ 
--organization "My_Organization"
~~~


Hammer command to add Content View in Composite Content View with "Always update to latest version" disabled.

~~~
# hammer content-view component add \
--component-content-view-id Content_View_ID \ 
--composite-content-view "Example_Composite_Content_View" \ 
--component-content-view-version-id Content_View_Version_ID \ 
--organization "My_Organization"
~~~

Comment 1 Marie Hornickova 2023-07-19 13:29:38 UTC
Hello,
Thank you very much for reporting this issue.
Updates about the progress on the fix will be shared here as well as the final link to fixed document.
Thank you!

Comment 2 Adam Lazik 2023-07-24 13:37:11 UTC
Hi!

Created PR to address the issue:
https://github.com/theforeman/foreman-documentation/pull/2305


Note You need to log in before you can comment on or make changes to this bug.