Merge lp://staging/~blake-rouse/maas/fix-1602721 into lp://staging/~maas-committers/maas/trunk
Proposed by
Blake Rouse
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Blake Rouse | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 5206 | ||||
Proposed branch: | lp://staging/~blake-rouse/maas/fix-1602721 | ||||
Merge into: | lp://staging/~maas-committers/maas/trunk | ||||
Diff against target: |
68 lines (+33/-3) 3 files modified
src/maasserver/api/tests/test_commissioning.py (+30/-0) src/metadataserver/fields.py (+1/-1) src/metadataserver/tests/test_fields.py (+2/-2) |
||||
To merge this branch: | bzr merge lp://staging/~blake-rouse/maas/fix-1602721 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mike Pontillo (community) | Approve | ||
Gavin Panella (community) | Approve | ||
Blake Rouse (community) | Approve | ||
Review via email:
|
Commit message
Prevent Bin class from causing Piston3 from having a circular dependency issue. An object that defines __emittable__ can not return an equal object as a result or a circular dependency will occur.
To post a comment you must log in.
It's too bad we have to hack around piston in this way. I think it would be acceptable to land this, but I'd like to see what others think, too. (Is this the best workaround we can think of? Should we consider a monkey patch, followed by submitting a patch upstream?)
The comment in the test for __eq__ is a code smell; I think the test either needs more testing to cover all the possible combinations, or be changed to be what we expect Piston to do. See comment below.