Merge lp:~axwalk/juju-core/setenvironconfig-delta into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Andrew Wilkins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2124 |
Proposed branch: | lp:~axwalk/juju-core/setenvironconfig-delta |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
403 lines (+68/-52) 15 files modified
cmd/juju/environment.go (+1/-1) cmd/juju/upgradejuju_test.go (+6/-6) cmd/jujud/agent_test.go (+3/-3) environs/testing/tools.go (+1/-1) juju/conn.go (+2/-2) juju/testing/repo.go (+5/-5) juju/testing/utils.go (+1/-1) state/api/provisioner/provisioner_test.go (+2/-2) state/apiserver/client/client.go (+1/-1) state/initialize_test.go (+2/-2) state/state.go (+14/-5) state/state_test.go (+6/-4) state/testing/config.go (+2/-2) worker/firewaller/firewaller_test.go (+3/-2) worker/provisioner/provisioner_test.go (+19/-15) |
To merge this branch: | bzr merge lp:~axwalk/juju-core/setenvironconfig-delta |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+197989@code.launchpad.net |
Commit message
state: update SetEnvironConfig to take new and old
SetEnvironConfig is updated to take both new and old
configurations, and a delta computed from these. The
only functional change for now is that attributes that
exist in old but not in new are now deleted from state.
To do this right, we should also check that the
settings in state are the same as the "old" config,
so the delta computed is what the user expects. I have
not done this part yet, as it is a fairly big change
and I am not confident I understand all of the
repercussions.
Description of the change
state: update SetEnvironConfig to take new and old
SetEnvironConfig is updated to take both new and old
configurations, and a delta computed from these. The
only functional change for now is that attributes that
exist in old but not in new are now deleted from state.
To do this right, we should also check that the
settings in state are the same as the "old" config,
so the delta computed is what the user expects. I have
not done this part yet, as it is a fairly big change
and I am not confident I understand all of the
repercussions.
Reviewers: mp+197989_ code.launchpad. net,
Message:
Please take a look.
Description:
state: update SetEnvironConfig to take new and old
SetEnvironConfig is updated to take both new and old
configurations, and a delta computed from these. The
only functional change for now is that attributes that
exist in old but not in new are now deleted from state.
To do this right, we should also check that the
settings in state are the same as the "old" config,
so the delta computed is what the user expects. I have
not done this part yet, as it is a fairly big change
and I am not confident I understand all of the
repercussions.
https:/ /code.launchpad .net/~axwalk/ juju-core/ setenvironconfi g-delta/ +merge/ 197989
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/38180043/
Affected files (+70, -52 lines): environment. go upgradejuju_ test.go agent_test. go testing/ tools.go repo.go utils.go provisioner/ provisioner_ test.go /client/ client. go e_test. go config. go firewaller/ firewaller_ test.go provisioner/ provisioner_ test.go
A [revision details]
M cmd/juju/
M cmd/juju/
M cmd/jujud/
M environs/
M juju/conn.go
M juju/testing/
M juju/testing/
M state/api/
M state/apiserver
M state/initializ
M state/state.go
M state/state_test.go
M state/testing/
M worker/
M worker/