Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 package ec2 | 1 package ec2 |
2 | 2 |
3 import ( | 3 import ( |
4 "fmt" | 4 "fmt" |
5 "launchpad.net/juju/go/juju" | 5 "launchpad.net/juju/go/juju" |
6 "launchpad.net/juju/go/schema" | 6 "launchpad.net/juju/go/schema" |
7 "sync" | 7 "sync" |
8 ) | 8 ) |
9 | 9 |
10 func init() { | 10 func init() { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
93 | 93 |
94 func (e *environ) Instances() ([]juju.Instance, error) { | 94 func (e *environ) Instances() ([]juju.Instance, error) { |
95 e.mu.Lock() | 95 e.mu.Lock() |
96 defer e.mu.Unlock() | 96 defer e.mu.Unlock() |
97 var is []juju.Instance | 97 var is []juju.Instance |
98 for _, i := range e.instances { | 98 for _, i := range e.instances { |
99 is = append(is, i) | 99 is = append(is, i) |
100 } | 100 } |
101 return is, nil | 101 return is, nil |
102 } | 102 } |
LEFT | RIGHT |