Bug #24199
closedAssigning environment on host create doesn't check the assignment of organization/location
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1595161
Steps to Reproduce:
1. make sure the puppet environment has puppet classes, but is not assigned to the organization or location that the host will be created in
1. # hammer -d -v -u admin -p changeme host create --architecture-id="1" --domain-id="4" --environment-id="6" --ip="186.107.94.90" --location-id="2" --mac="4c:f7:c4:84:e2:92" --medium-id="11" --name="jhutar$RANDOM" --operatingsystem-id="2" --organization-id="1" --partition-table-id="94" --puppet-class-ids="6" --root-password="..."
Actual results:
The host is created, without any warning, but assignment of puppet classes is wrong at the end
Expected results:
The hammer command fails with error, that the provided environment doesn't belong to the organization/location