Merge lp:~benji/juju-core/expose-service-constraints into lp:~juju/juju-core/trunk
Proposed by
Benji York
Status: | Merged |
---|---|
Merged at revision: | 1109 |
Proposed branch: | lp:~benji/juju-core/expose-service-constraints |
Merge into: | lp:~juju/juju-core/trunk |
Diff against target: |
128 lines (+57/-4) 6 files modified
cmd/juju/constraints.go (+5/-4) state/api/apiclient.go (+7/-0) state/api/params/params.go (+10/-0) state/apiserver/api_test.go (+11/-0) state/apiserver/apiserver.go (+5/-0) state/statecmd/getconstraints.go (+19/-0) |
To merge this branch: | bzr merge lp:~benji/juju-core/expose-service-constraints |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+157115@code.launchpad.net |
Description of the change
Add service constraint fetching to the API
To post a comment you must log in.
LGTM, modulo a few trivials.
https:/ /codereview. appspot. com/8366043/ diff/1/ cmd/juju/ constraints. go constraints. go (right):
File cmd/juju/
https:/ /codereview. appspot. com/8366043/ diff/1/ cmd/juju/ constraints. go#newcode66 constraints. go:66: if err != nil {
cmd/juju/
how about just: if err == nil { cons = results.Constraints }, the if
below will take care of the other case.
https:/ /codereview. appspot. com/8366043/ diff/1/ state/api/ apiclient. go apiclient. go (right):
File state/api/
https:/ /codereview. appspot. com/8366043/ diff/1/ state/api/ apiclient. go#newcode171 apiclient. go:171: // GetServiceConst raints specifies the returns/
state/api/
constraints for the given service.
s/specifies/
https:/ /codereview. appspot. com/8366043/ diff/1/ state/apiserver /apiserver. go /apiserver. go (right):
File state/apiserver
https:/ /codereview. appspot. com/8366043/ diff/1/ state/apiserver /apiserver. go#newcode374 /apiserver. go:374: // GetServiceConst raints sets the
state/apiserver
constraints for a given service.
s/sets/returns/
https:/ /codereview. appspot. com/8366043/ diff/1/ state/statecmd/ getconstraints. go getconstraints. go (right):
File state/statecmd/
https:/ /codereview. appspot. com/8366043/ diff/1/ state/statecmd/ getconstraints. go#newcode11 getconstraints. go:11: // GetServiceConts traints sets the
state/statecmd/
constraints for a given service
ditto
https:/ /codereview. appspot. com/8366043/