~ubuntu-branches/ubuntu/vivid/ironic/vivid-updates

« back to all changes in this revision

Viewing changes to ironic/drivers/modules/drac/power.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2015-01-05 12:21:37 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20150105122137-171bqrdpcxqipunk
Tags: 2015.1~b1-0ubuntu1
* New upstream beta release:
  - d/control: Align version requirements with upstream release.
* d/watch: Update uversionmangle to deal with kilo beta versioning
  changes.
* d/control: Bumped Standards-Version to 3.9.6, no changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from ironic.common import exception
22
22
from ironic.common.i18n import _LE
23
23
from ironic.common import states
 
24
from ironic.conductor import task_manager
24
25
from ironic.drivers import base
25
26
from ironic.drivers.modules.drac import common as drac_common
26
27
from ironic.drivers.modules.drac import resource_uris
136
137
        """
137
138
        return _get_power_state(task.node)
138
139
 
 
140
    @task_manager.require_exclusive_lock
139
141
    def set_power_state(self, task, power_state):
140
142
        """Set the power state of the task's node.
141
143
 
146
148
        """
147
149
        return _set_power_state(task.node, power_state)
148
150
 
 
151
    @task_manager.require_exclusive_lock
149
152
    def reboot(self, task):
150
153
        """Perform a hard reboot of the task's node.
151
154