~lutostag/ubuntu/trusty/maas/1.5.4

« back to all changes in this revision

Viewing changes to src/provisioningserver/tasks.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2014-02-15 12:08:23 UTC
  • mto: This revision was merged to the branch mainline in revision 48.
  • Revision ID: package-import@ubuntu.com-20140215120823-u7dkitfy0h8tbruh
Tags: upstream-1.5+bzr1948
ImportĀ upstreamĀ versionĀ 1.5+bzr1948

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
    assert power_change in ('on', 'off'), (
135
135
        "Unknown power change keyword: %s" % power_change)
136
136
    kwargs['power_change'] = power_change
 
137
    if 'mac_address' in kwargs:
 
138
        kwargs['ip_address'] = find_ip_via_arp(kwargs['mac_address'])
137
139
    try:
138
140
        pa = PowerAction(power_type)
139
141
        pa.execute(**kwargs)