Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #21689 - Validate content source in facet #7287

Merged
merged 1 commit into from Apr 11, 2018
Merged

Fixes #21689 - Validate content source in facet #7287

merged 1 commit into from Apr 11, 2018

Conversation

akofink
Copy link
Member

@akofink akofink commented Apr 4, 2018

This change should check that the content source exists in the
database only if a content_source_id is given for a host.

Requires theforeman/foreman#5405

This change should check that the content source exists in the
database only if a content_source_id is given for a host.

Requires theforeman/foreman#5405
@theforeman-bot
Copy link

Issues: #21689

@lzap
Copy link
Contributor

lzap commented Apr 5, 2018

Sup! Merged in core [test katello]

@san7ket
Copy link

san7ket commented Apr 11, 2018

 hammer host create --medium-id="169" --ip="192.168.121.3" --location-id="2" --operatingsystem-id="1" --lifecycle-environment="Dev" --domain-id="1" --partition-table-id="91" --content-source-id="61340" --mac="40:8f:bf:b6:ca:7a" --content-view-id="2" --architecture-id="1" --organization="Default Organization" --name="mYXwuGUHRd" --root-password="test2131s@" 
Could not create the host:
  Content source with given ID not found

Fixes the error on host endpoint, works as expected

@akofink akofink merged commit 18eb355 into Katello:master Apr 11, 2018
@akofink akofink deleted the 21689 branch April 11, 2018 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants