Index: state/statecmd/resolved.go |
=== modified file 'state/statecmd/resolved.go' |
--- state/statecmd/resolved.go 2013-03-29 14:54:58 +0000 |
+++ state/statecmd/resolved.go 2013-04-01 19:42:53 +0000 |
@@ -11,12 +11,12 @@ |
// normal workflow. The retryHooks parameter informs whether to attempt to |
// retry previous failed hooks or to continue as if they had succeeded before. |
func MarkResolved(unit *state.Unit, retryHooks bool) error { |
- if status, _ := unit.Status(); status != state.UnitError { |
+ if status, _ := unit.Status(); status != params.UnitError { |
return fmt.Errorf("unit %q is not in an error state", unit) |
} |
- mode := state.ResolvedNoHooks |
+ mode := params.ResolvedNoHooks |
if retryHooks { |
- mode = state.ResolvedRetryHooks |
+ mode = params.ResolvedRetryHooks |
} |
return unit.SetResolved(mode) |
} |