Fixed DecommissionError bug

DecommissionError now can be raised without arguments
(with default message).

Change-Id: I4f8817b3cd6e58384438cb1a6444efbff0f1047b
Closes-bug: #1355084
This commit is contained in:
Andrey Pavlov 2014-08-11 13:41:23 +04:00
parent b434226c4f
commit 84b5465ea3

View File

@ -27,7 +27,7 @@ class DecommissionError(e.SaharaException):
code = "DECOMMISSION_ERROR"
message = "Failed to decommission cluster"
def __init__(self, message):
def __init__(self, message=None):
if message:
self.message = message