state.SetEnvironConfig should take old and new config values
Bug #1167616 reported by
Tim Penhey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Low
|
Unassigned |
Bug Description
We should pass in both the old and new config to SetEnvironConfig in order to determine changes.
Then conditions could be added to the update to make sure that we aren't updating something that someone else has tweaked in the mean time, and that we wouldn't wipe out someone else's changes.
Related branches
lp:~axwalk/juju-core/setenvironconfig-delta
- Juju Engineering: Pending requested
-
Diff: 403 lines (+68/-52)15 files modifiedcmd/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)
Changed in juju-core: | |
importance: | Medium → Low |
Changed in juju-core: | |
milestone: | none → 2.0.0 |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.0.0 → none |
milestone: | none → 2.0.0 |
Changed in juju: | |
milestone: | 2.0.0 → 2.0.1 |
Changed in juju: | |
milestone: | 2.0.1 → none |
To post a comment you must log in.
I need to be able to remove config keys from state to test secrets-pushing, so I'll take a look at this.