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.
Actions