Add action description

Add action get_description in class BaseAction.
This information will be sent to the API side via notification.

Partially Implements: blueprint dynamic-action-description

Change-Id: I9ce1b18ad8c5eb7db62ec926d1859d0f508074b0
This commit is contained in:
licanwei
2017-03-28 19:49:41 +08:00
parent 590bd43a1d
commit 75a025d2d2
7 changed files with 30 additions and 0 deletions

View File

@@ -172,3 +172,7 @@ class Migrate(base.BaseAction):
def post_condition(self):
# TODO(jed): check extra parameters (network response, etc.)
pass
def get_description(self):
"""Description of the action"""
return "Moving a VM instance from source_node to destination_node"