~sil2100/ubuntu-test-cases/touch-readd-dispatcher

« back to all changes in this revision

Viewing changes to scripts/device_info.py

  • Committer: paul.larson at canonical
  • Date: 2014-05-12 18:40:04 UTC
  • mfrom: (227.1.4 device-recovery)
  • Revision ID: paul.larson@canonical.com-20140512184004-aovjb0bpjpfaztqi
Add basic device recovery framework

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    "mako-12": TouchDevice("mako", "00693fd555c9186a",
30
30
                           relay_url="http://qa-relay-control.ubuntu-ci",
31
31
                           bank=0, power_pin=1, volume_pin=2),
32
 
    "ps-manta-01": TouchDevice("manta", "R32D203DDZR"),
33
32
    "manta-01": TouchDevice("manta", "R32D102RPZL"),
34
33
    "manta-02": TouchDevice("manta", "R32D102RPPK"),
35
34
    "manta-04": TouchDevice("manta", "R32D203DDZR"),
66
65
 
67
66
def get_power(name):
68
67
    device = DEVICES.get(name)
69
 
    return (device.relay_url, device.power_pin, device.volume_pin)
 
68
    return (device.relay_url, device.bank, device.power_pin, device.volume_pin)