Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(33)

Issue 5939046: Providers are now directly responsible for their own constraints

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by fwereade
Modified:
12 years, 1 month ago
Reviewers:
mp+99655
Visibility:
Public.

Description

Providers are now directly responsible for their own constraints This is really just a rearrangement of code; nothing fundamental has actually changed, except that Constraints.from_strs is entirely gone; and trying to construct Constraints(None, data) will no longer produce a viable specimen. https://code.launchpad.net/~fwereade/juju/actual-provider-constraints/+merge/99655 Requires: https://code.launchpad.net/~fwereade/juju/retire-direct-constraints-creation/+merge/99651 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Providers are now directly responsible for their own constraints #

Patch Set 3 : Providers are now directly responsible for their own constraints #

Total comments: 6

Patch Set 4 : Providers are now directly responsible for their own constraints #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -276 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M juju/machine/constraints.py View 1 2 3 8 chunks +4 lines, -88 lines 0 comments Download
M juju/machine/tests/test_constraints.py View 1 5 chunks +83 lines, -172 lines 0 comments Download
M juju/providers/common/base.py View 2 chunks +2 lines, -2 lines 0 comments Download
M juju/providers/ec2/__init__.py View 2 chunks +9 lines, -1 line 0 comments Download
M juju/providers/ec2/tests/test_provider.py View 1 2 3 2 chunks +61 lines, -1 line 0 comments Download
M juju/providers/ec2/tests/test_utils.py View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M juju/providers/ec2/utils.py View 1 2 3 8 chunks +47 lines, -8 lines 0 comments Download
M juju/providers/orchestra/__init__.py View 1 chunk +10 lines, -0 lines 0 comments Download
M juju/providers/orchestra/tests/test_provider.py View 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 8
fwereade
Please take a look.
12 years, 1 month ago (2012-03-28 02:05:37 UTC) #1
fwereade
Please take a look.
12 years, 1 month ago (2012-03-28 08:44:26 UTC) #2
fwereade
Please take a look.
12 years, 1 month ago (2012-03-28 09:15:33 UTC) #3
hazmat
LGTM, thanks for working on this. https://codereview.appspot.com/5939046/diff/4001/juju/machine/constraints.py File juju/machine/constraints.py (right): https://codereview.appspot.com/5939046/diff/4001/juju/machine/constraints.py#newcode170 juju/machine/constraints.py:170: if data[name] is ...
12 years, 1 month ago (2012-03-28 17:29:04 UTC) #4
fwereade
https://codereview.appspot.com/5939046/diff/4001/juju/machine/constraints.py File juju/machine/constraints.py (right): https://codereview.appspot.com/5939046/diff/4001/juju/machine/constraints.py#newcode170 juju/machine/constraints.py:170: if data[name] is None: On 2012/03/28 17:29:04, hazmat wrote: ...
12 years, 1 month ago (2012-03-28 17:58:11 UTC) #5
hazmat
https://codereview.appspot.com/5939046/diff/4001/juju/machine/constraints.py File juju/machine/constraints.py (right): https://codereview.appspot.com/5939046/diff/4001/juju/machine/constraints.py#newcode170 juju/machine/constraints.py:170: if data[name] is None: On 2012/03/28 17:58:11, fwereade wrote: ...
12 years, 1 month ago (2012-03-28 18:07:39 UTC) #6
fwereade
https://codereview.appspot.com/5939046/diff/4001/juju/machine/constraints.py File juju/machine/constraints.py (right): https://codereview.appspot.com/5939046/diff/4001/juju/machine/constraints.py#newcode170 juju/machine/constraints.py:170: if data[name] is None: On 2012/03/28 18:07:39, hazmat wrote: ...
12 years, 1 month ago (2012-03-28 18:16:03 UTC) #7
fwereade
12 years, 1 month ago (2012-03-28 18:57:14 UTC) #8
*** Submitted:

Providers are now directly responsible for their own constraints

This is really just a rearrangement of code; nothing fundamental has
actually changed, except that Constraints.from_strs is entirely gone; and
trying to construct Constraints(None, data) will no longer produce a viable
specimen.

R=hazmat
CC=
https://codereview.appspot.com/5939046
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b