Fix action_class typo and exception message.

Change-Id: Ib3628c201957c9ece61091c657bda94ef6af4d28
This commit is contained in:
Bhavanishankar Ravindra 2014-08-19 12:20:30 +05:30
parent ba64a52bb8
commit 95c7c04528
1 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ class Step(object):
A ``Step`` class has the following attributes:
.. attribute:: action
.. attribute:: action_class
The :class:`~horizon.workflows.Action` class which this step wraps.
@ -293,7 +293,7 @@ class Step(object):
cls = self.__class__.__name__
if not (self.action_class and issubclass(self.action_class, Action)):
raise AttributeError("You must specify an action for %s." % cls)
raise AttributeError("action_class not specified for %s." % cls)
self.slug = self.action_class.slug
self.name = self.action_class.name