~dave-cheney/juju-core/go-environs-instance-equals

« back to all changes in this revision

Viewing changes to environs/ec2/ec2.go

  • Committer: Dave Cheney
  • Date: 2012-06-26 01:46:49 UTC
  • Revision ID: david.cheney@canonical.com-20120626014649-yhhjsyhyxahl4xzb
add Instance.Equals(Instance)

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        return "", fmt.Errorf("timed out trying to get DNS address for %v", inst.Id())
97
97
}
98
98
 
 
99
func (inst *instance) Equals(i environs.Instance) bool {
 
100
        return inst.Id() == i.(*instance).Id()
 
101
}
 
102
 
99
103
func (cfg *providerConfig) Open() (environs.Environ, error) {
100
104
        log.Printf("environs/ec2: opening environment %q", cfg.name)
101
105
        if Regions[cfg.region].EC2Endpoint == "" {