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

Unified Diff: worker/machiner/machiner.go

Issue 8667043: various: unify machine and unit status types (Closed)
Patch Set: various: unify machine and unit status types Created 10 years, 11 months 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/unit_test.go ('k') | worker/machiner/machiner_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: worker/machiner/machiner.go
=== modified file 'worker/machiner/machiner.go'
--- worker/machiner/machiner.go 2013-04-11 11:18:03 +0000
+++ worker/machiner/machiner.go 2013-04-11 15:46:31 +0000
@@ -60,7 +60,7 @@
log.Debugf("worker/machiner: agent for machine %q is now alive", m)
// Mark the machine as started and log it.
- if err := m.SetStatus(params.MachineStarted, ""); err != nil {
+ if err := m.SetStatus(params.StatusStarted, ""); err != nil {
return err
}
log.Noticef("worker/machiner: machine %q started", m)
@@ -79,7 +79,7 @@
}
if m.Life() != state.Alive {
log.Debugf("worker/machiner: machine %q is now %s", m, m.Life())
- if err := m.SetStatus(params.MachineStopped, ""); err != nil {
+ if err := m.SetStatus(params.StatusStopped, ""); err != nil {
return err
}
// If the machine is Dying, it has no units,
« no previous file with comments | « state/unit_test.go ('k') | worker/machiner/machiner_test.go » ('j') | no next file with comments »

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