From 3ca8ab094e3f7115262a81b7a7aea8b2fb9fe568 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Thu, 7 Jul 2016 17:44:59 +0100 Subject: [PATCH] Remove IBootOperationError exception This exception is not raised anywhere. Change-Id: I1a93b6bf9b231042446ed77969f11ea25ca5013e --- ironic/common/exception.py | 4 ---- ironic/drivers/modules/iboot.py | 3 --- 2 files changed, 7 deletions(-) diff --git a/ironic/common/exception.py b/ironic/common/exception.py index ccbee40a95..139bbf997f 100644 --- a/ironic/common/exception.py +++ b/ironic/common/exception.py @@ -483,10 +483,6 @@ class PasswordFileFailedToCreate(IronicException): _msg_fmt = _("Failed to create the password file. %(error)s") -class IBootOperationError(IronicException): - pass - - class IloOperationError(IronicException): _msg_fmt = _("%(operation)s failed, error: %(error)s") diff --git a/ironic/drivers/modules/iboot.py b/ironic/drivers/modules/iboot.py index 5b62d5237e..3b9c1cbe42 100644 --- a/ironic/drivers/modules/iboot.py +++ b/ironic/drivers/modules/iboot.py @@ -205,7 +205,6 @@ class IBootPower(base.PowerInterface): :param task: a TaskManager instance containing the node to act on. :returns: one of ironic.common.states POWER_OFF, POWER_ON or ERROR. - :raises: IBootOperationError on an error from iBoot. :raises: InvalidParameterValue if iboot parameters are invalid. :raises: MissingParameterValue if required iboot parameters are missing. @@ -221,7 +220,6 @@ class IBootPower(base.PowerInterface): :param task: a TaskManager instance containing the node to act on. :param pstate: The desired power state, one of ironic.common.states POWER_ON, POWER_OFF. - :raises: IBootOperationError on an error from iBoot. :raises: InvalidParameterValue if iboot parameters are invalid or if an invalid power state was specified. :raises: MissingParameterValue if required iboot parameters are @@ -246,7 +244,6 @@ class IBootPower(base.PowerInterface): """Cycles the power to the task's node. :param task: a TaskManager instance containing the node to act on. - :raises: IBootOperationError on an error from iBoot. :raises: InvalidParameterValue if iboot parameters are invalid. :raises: MissingParameterValue if required iboot parameters are missing.