OLD | NEW |
1 // Copyright 2013 Canonical Ltd. | 1 // Copyright 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 authenticationworker | 4 package authenticationworker |
5 | 5 |
6 import ( | 6 import ( |
7 "strings" | 7 "strings" |
8 | 8 |
| 9 "github.com/juju/errors" |
9 "github.com/juju/loggo" | 10 "github.com/juju/loggo" |
10 "launchpad.net/tomb" | 11 "launchpad.net/tomb" |
11 | 12 |
12 "launchpad.net/juju-core/agent" | 13 "launchpad.net/juju-core/agent" |
13 "launchpad.net/juju-core/errors" | |
14 "launchpad.net/juju-core/state/api/keyupdater" | 14 "launchpad.net/juju-core/state/api/keyupdater" |
15 "launchpad.net/juju-core/state/api/watcher" | 15 "launchpad.net/juju-core/state/api/watcher" |
16 "launchpad.net/juju-core/utils/set" | 16 "launchpad.net/juju-core/utils/set" |
17 "launchpad.net/juju-core/utils/ssh" | 17 "launchpad.net/juju-core/utils/ssh" |
18 "launchpad.net/juju-core/worker" | 18 "launchpad.net/juju-core/worker" |
19 ) | 19 ) |
20 | 20 |
21 // The user name used to ssh into Juju nodes. | 21 // The user name used to ssh into Juju nodes. |
22 // Override for testing. | 22 // Override for testing. |
23 var SSHUser = "ubuntu" | 23 var SSHUser = "ubuntu" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 } | 112 } |
113 kw.jujuKeys = newJujuKeys | 113 kw.jujuKeys = newJujuKeys |
114 return nil | 114 return nil |
115 } | 115 } |
116 | 116 |
117 // TearDown is defined on the worker.NotifyWatchHandler interface. | 117 // TearDown is defined on the worker.NotifyWatchHandler interface. |
118 func (kw *keyupdaterWorker) TearDown() error { | 118 func (kw *keyupdaterWorker) TearDown() error { |
119 // Nothing to do here. | 119 // Nothing to do here. |
120 return nil | 120 return nil |
121 } | 121 } |
OLD | NEW |