OLD | NEW |
1 // Copyright 2012, 2013 Canonical Ltd. | 1 // Copyright 2012, 2013 Canonical Ltd. |
2 // Licensed under the AGPLv3, see LICENCE file for details. | 2 // Licensed under the AGPLv3, see LICENCE file for details. |
3 | 3 |
4 package agent | 4 package agent |
5 | 5 |
6 // TODO(fwereade): there's nothing machine-specific in here... | |
7 | |
8 import ( | 6 import ( |
9 "fmt" | 7 "fmt" |
10 | 8 |
11 "launchpad.net/juju-core/state/api/common" | 9 "launchpad.net/juju-core/state/api/common" |
12 "launchpad.net/juju-core/state/api/params" | 10 "launchpad.net/juju-core/state/api/params" |
13 ) | 11 ) |
14 | 12 |
15 // State provides access to an agent's view of the state. | 13 // State provides access to an agent's view of the state. |
16 type State struct { | 14 type State struct { |
17 caller common.Caller | 15 caller common.Caller |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 Tag: m.tag, | 83 Tag: m.tag, |
86 Password: password, | 84 Password: password, |
87 }}, | 85 }}, |
88 } | 86 } |
89 err := m.st.caller.Call("Agent", "", "SetPasswords", args, &results) | 87 err := m.st.caller.Call("Agent", "", "SetPasswords", args, &results) |
90 if err != nil { | 88 if err != nil { |
91 return err | 89 return err |
92 } | 90 } |
93 return results.OneError() | 91 return results.OneError() |
94 } | 92 } |
OLD | NEW |