Revision 8ef418bb lib/backend.py
b/lib/backend.py | ||
---|---|---|
3911 | 3911 |
_Fail(str(err)) |
3912 | 3912 |
|
3913 | 3913 |
|
3914 |
def PowercycleNode(hypervisor_type): |
|
3914 |
def PowercycleNode(hypervisor_type, hvparams=None):
|
|
3915 | 3915 |
"""Hard-powercycle the node. |
3916 | 3916 |
|
3917 | 3917 |
Because we need to return first, and schedule the powercycle in the |
... | ... | |
3932 | 3932 |
except Exception: # pylint: disable=W0703 |
3933 | 3933 |
pass |
3934 | 3934 |
time.sleep(5) |
3935 |
hyper.PowercycleNode() |
|
3935 |
hyper.PowercycleNode(hvparams=hvparams)
|
|
3936 | 3936 |
|
3937 | 3937 |
|
3938 | 3938 |
def _VerifyRestrictedCmdName(cmd): |
Also available in: Unified diff