github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/worker/uniter/operation/noopfinishupgradeseries.go (about) 1 // Copyright 2018 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package operation 5 6 import ( 7 "fmt" 8 ) 9 10 type noOpFinishUpgradeSeries struct { 11 Operation 12 } 13 14 // String is part of the Operation interface. 15 func (op *noOpFinishUpgradeSeries) String() string { 16 return fmt.Sprint("complete upgrade series") 17 } 18 19 // Commit is part of the Operation interface. 20 func (op *noOpFinishUpgradeSeries) Commit(state State) (*State, error) { 21 // make no change to state 22 return &state, nil 23 }