Bug #27455
closed
Setting puppet environment for hostgroup via hammer fails
Added by Matthew Smith over 5 years ago.
Updated over 5 years ago.
Description
Hi,
When I try to set the puppet environment using hammer during a create or an update it errors with a message about the lifecycle_environement not found. I am able to change and save as expected via the GUI.
eg:
hammer hostgroup update --name "test" --environment production --organization TEST --lifecycle-environment test
Could not update the hostgroup:
Error: lifecycle_environment not found.
- Assignee set to Justin Sherrill
- Category set to Hammer
- Status changed from New to Need more information
- Target version set to Katello 3.12.2
- Triaged changed from No to Yes
Hi Matthew,
This version of Hammer was included in Katello 3.12.2 which was released yesterday. Can you upgrade and let us know if the issue still exists?
Chris Roberts wrote:
Hi Matthew,
This version of Hammer was included in Katello 3.12.2 which was released yesterday. Can you upgrade and let us know if the issue still exists?
Hi Chris,
Yes that works now. Thanks
[root@katello ~] # hammer hostgroup create --name "test" --puppet-environment production --organization Test --lifecycle-environment Test
Hostgroup created.
[root@katello ~]# hammer hostgroup update --name "test" --puppet-environment production --organization Test --lifecycle-environment Library
Hostgroup updated.
- Status changed from Need more information to Resolved
Hi Matthew,
Great! I will close this bug out then.
Also available in: Atom
PDF