Bug 1072336
Summary: | Move setting the system's default release action to the database layer. | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Raymond Mancy <rmancy> |
Component: | general | Assignee: | Dan Callaghan <dcallagh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 0.15 | CC: | aigao, asaha, dcallagh, ebaak, jzhao, rmancy, tools-bugs |
Target Milestone: | 19.0 | Keywords: | Patch |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-11-25 07:18:26 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1014438 | ||
Bug Blocks: |
Description
Raymond Mancy
2014-03-04 12:08:41 UTC
(In reply to Raymond Mancy from comment #0) > Unfortunately we can't set this default on the DB schema because sqlalchemy > does not support the 'Enum' type in the 'default_server' kwarg. Setting the > 'default' kwarg is the next best thing. That seems surprising, it should treat an enum value like any other literal (it becomes a string literal on the database side). Is this a documented issue? What error did you get? (In reply to Dan Callaghan from comment #3) > (In reply to Raymond Mancy from comment #0) > > Unfortunately we can't set this default on the DB schema because sqlalchemy > > does not support the 'Enum' type in the 'default_server' kwarg. Setting the > > 'default' kwarg is the next best thing. > > That seems surprising, it should treat an enum value like any other literal > (it becomes a string literal on the database side). > > Is this a documented issue? What error did you get? So it won't let you pass in an Enum type. It doesn't convert it to a string literal itself. However, you can actually pass it in as a string literal, so server_default=unicode(ReleaseAction.power_off) does work. This has been merged onto the new-system-page branch This was merged to develop as part of the new-system-page branch. Beaker 19.0 has been released. |