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

Unified Diff: worker/provisioner/lxc-broker.go

Issue 11561044: Make agent/tools and remove state.Tools
Patch Set: Created 10 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
Index: worker/provisioner/lxc-broker.go
=== modified file 'worker/provisioner/lxc-broker.go'
--- worker/provisioner/lxc-broker.go 2013-07-15 01:16:52 +0000
+++ worker/provisioner/lxc-broker.go 2013-07-22 04:04:34 +0000
@@ -6,6 +6,7 @@
import (
"launchpad.net/loggo"
+ "launchpad.net/juju-core/agent/tools"
"launchpad.net/juju-core/constraints"
"launchpad.net/juju-core/container/lxc"
"launchpad.net/juju-core/environs/config"
@@ -18,7 +19,7 @@
var _ Broker = (*lxcBroker)(nil)
-func NewLxcBroker(config *config.Config, tools *state.Tools) Broker {
+func NewLxcBroker(config *config.Config, tools *tools.Tools) Broker {
return &lxcBroker{
manager: lxc.NewContainerManager(lxc.ManagerConfig{Name: "juju"}),
config: config,
@@ -29,7 +30,7 @@
type lxcBroker struct {
manager lxc.ContainerManager
config *config.Config
- tools *state.Tools
+ tools *tools.Tools
}
func (broker *lxcBroker) StartInstance(machineId, machineNonce string, series string, cons constraints.Value, info *state.Info, apiInfo *api.Info) (instance.Instance, *instance.HardwareCharacteristics, error) {

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