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

Unified Diff: state/machine.go

Issue 6256079: cmd/jujud: provisioning agent woodenman (Closed)
Patch Set: cmd/jujud: provisioning agent woodenman Created 12 years, 8 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 | « cmd/jujud/provisioning_test.go ('k') | state/relation.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/machine.go
=== modified file 'state/machine.go'
--- state/machine.go 2012-05-30 01:11:22 +0000
+++ state/machine.go 2012-06-05 22:50:35 +0000
@@ -35,7 +35,7 @@
func (m *Machine) WaitAgentAlive(timeout time.Duration) error {
err := presence.WaitAlive(m.st.zk, m.zkAgentPath(), timeout)
if err != nil {
- return fmt.Errorf("state: waiting for agent of machine %d: %v", m.Id(), err)
+ return fmt.Errorf("state: waiting for agent of machine %s: %v", m, err)
}
return nil
}
@@ -75,6 +75,11 @@
return err
}
+// String returns a unique description of this machine
+func (m *Machine) String() string {
+ return strconv.Itoa(m.Id())
+}
+
// zkKey returns the ZooKeeper key of the machine.
func (m *Machine) zkKey() string {
return m.key
« no previous file with comments | « cmd/jujud/provisioning_test.go ('k') | state/relation.go » ('j') | no next file with comments »

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