Merge lp:~andreserl/maas/maas_fix_constraints_arch_mapping into lp:~maas-committers/maas/trunk
Proposed by
Andres Rodriguez
Status: | Rejected | ||||||||
---|---|---|---|---|---|---|---|---|---|
Rejected by: | Martin Packman | ||||||||
Proposed branch: | lp:~andreserl/maas/maas_fix_constraints_arch_mapping | ||||||||
Merge into: | lp:~maas-committers/maas/trunk | ||||||||
Diff against target: |
28 lines (+12/-1) 1 file modified
src/maasserver/api.py (+12/-1) |
||||||||
To merge this branch: | bzr merge lp:~andreserl/maas/maas_fix_constraints_arch_mapping | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Needs Information | ||
John A Meinel | Pending | ||
Review via email: mp+128338@code.launchpad.net |
To post a comment you must log in.
I think this is the wrong solution. If a subarch is not supplied I arch_map is a
would expect it to match any subarch. _constraints_
kludge to force this issue to go away, but I think it needs a
different fix. If we run out of time then I guess this is okay, but
I'd rather Blue Squad have a chance to comment first.
[1]
+_constraints_ arch_map = {
Can you add a comment here, explaining to our future selves what the
purpose of this is?
[2]
+ if request_ params[ request_ name] in _constraints_ arch_map: db_name] = _constraints_ arch_map[ request_ params[ request_ name]] db_name] = request_ params[ request_ name]
+ constraints[
+ else:
+ constraints[
This could be simplified a little: