~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to environs/azure/instance.go

  • Committer: Tarmac
  • Author(s): Raphael Badin
  • Date: 2013-07-16 10:25:00 UTC
  • mfrom: (1461.1.3 empty-methods)
  • Revision ID: tarmac-20130716102500-ppf28lfz2u90d5q8
[r=rvb] Azure provider: implement more methods

This branch does two things:
- it replaces the panic() calls in the port-related methods with empty methods. The goal here is to be able to test the provider more easily, provided that you open/close the ports manually.
- it updates the name of the image used because an image with support for Azure in cloud-init has just been made available.

In case you wonder, the change s/ExtraSmall/Small is there to accomodate installing mysql on a node. ExtraSmall does not have enough memory.

This is all for the sake of testing, all of the code that this branch changes will be re-worked later.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
// OpenPorts is specified in the Instance interface.
47
47
func (azInstance *azureInstance) OpenPorts(machineId string, ports []instance.Port) error {
48
 
        panic("unimplemented")
 
48
        // TODO: implement this.
 
49
        return nil
49
50
}
50
51
 
51
52
// ClosePorts is specified in the Instance interface.
52
53
func (azInstance *azureInstance) ClosePorts(machineId string, ports []instance.Port) error {
53
 
        panic("unimplemented")
 
54
        // TODO: implement this.
 
55
        return nil
54
56
}
55
57
 
56
58
// Ports is specified in the Instance interface.
57
59
func (azInstance *azureInstance) Ports(machineId string) ([]instance.Port, error) {
58
 
        panic("unimplemented")
 
60
        // TODO: implement this.
 
61
        return []instance.Port{}, nil
59
62
}