Actions
Bug #36041
closedAdd some validation for name in Simplified ACS creation via hammer
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2159967
Description of problem:
Not providing a name on Simplified ACS creation via hammer shows an unsightly error. Please consider adding some validation and message like 'Missing values for alternate_content_source.'
Version-Release number of selected component (if applicable):
6.13.0 snap 5
How reproducible:
always
1. Try to create a simplified ACS, not providing name for it:
- hammer alternate-content-source create --alternate-content-source-type simplified
Actual results:
Could not create the Alternate Content Source.:
PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint
DETAIL: Failing row contains (42, null, null, null, null, null, null, null, {}, yum, simplified, null, null, null, null).
Expected results:
Validation added and improved error message shown.
Actions