Actions
Bug #24559
closedHostgroups should use AssociationExistsValidator for content_source
Difficulty:
trivial
Triaged:
Yes
Bugzilla link:
Pull request:
Description
$ hammer hostgroup create --name potato --content-source-id 92 # does not exist Could not create the hostgroup: PG::ForeignKeyViolation: ERROR: insert or update on table "hostgroups" violates foreign key constraint "hostgroups_content_source_id_fk" DETAIL: Key (content_source_id)=(92) is not present in table "smart_proxies". : INSERT INTO "hostgroups" ("name", "created_at", "updated_at", "title", "content_source_id", "lookup_value_matcher") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
This isn't specific to hammer.
Updated by Andrew Kofink over 6 years ago
- Related to Bug #21689: Specifying wrong foreign key id for object (such as host or hostgroup) via hammer/api throws SQL error added
Updated by Andrew Kofink over 6 years ago
- Related to Bug #24528: Content Source resource_name is smart_proxy, which is confusing to users added
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7608 added
Updated by Andrew Kofink over 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|e8f2e13bed00a4395b47f2d3e9eb6b7aa0bab2aa.
Actions