Merge "Provide action-input via API"

This commit is contained in:
Jenkins 2014-10-08 15:55:36 +00:00 committed by Gerrit Code Review
commit 9b2613628c
2 changed files with 5 additions and 2 deletions

View File

@ -35,6 +35,7 @@ class Action(resource.Resource):
id = wtypes.text
name = wtypes.text
is_system = bool
input = wtypes.text
description = wtypes.text
tags = [wtypes.text]

View File

@ -53,7 +53,8 @@ def create_action(action_spec, definition):
'tags': action_spec.get_tags(),
'definition': definition,
'spec': action_spec.to_dict(),
'is_system': False
'is_system': False,
'input': ", ".join(action_spec.get_input())
}
_add_security_info(values)
@ -76,7 +77,8 @@ def create_or_update_action(action_spec, definition):
'tags': action_spec.get_tags(),
'definition': definition,
'spec': action_spec.to_dict(),
'is_system': False
'is_system': False,
'input': ", ".join(action_spec.get_input())
}
_add_security_info(values)