Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5)

Unified Diff: state/statecmd/resolved.go

Issue 8086045: Expose more delta information
Patch Set: Expose more delta information Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « state/state_test.go ('k') | state/statecmd/resolved_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
}
« no previous file with comments | « state/state_test.go ('k') | state/statecmd/resolved_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b