github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/upgrades/steps123.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package upgrades 5 6 import "github.com/juju/juju/state" 7 8 // stateStepsFor123 returns upgrade steps form Juju 1.23 that manipulate state directly. 9 func stateStepsFor123() []Step { 10 return []Step{ 11 &upgradeStep{ 12 description: "drop old mongo indexes", 13 targets: []Target{DatabaseMaster}, 14 run: func(context Context) error { 15 return state.DropOldIndexesv123(context.State()) 16 }, 17 }, 18 } 19 } 20 21 // stepsFor123 returns upgrade steps form Juju 1.23 that only need the API. 22 func stepsFor123() []Step { 23 return []Step{ 24 &upgradeStep{ 25 description: "add environment UUID to agent config", 26 targets: []Target{AllMachines}, 27 run: addEnvironmentUUIDToAgentConfig, 28 }, 29 } 30 }