Use parenthesis to wrap strings over multiple lines
Change-Id: Id85fae325b1de97bc90c9555ad9a17b4f3436ef3
This commit is contained in:
parent
2abeeb7353
commit
6d5cd6609e
@ -213,8 +213,8 @@ class Execution(resource.Resource):
|
|||||||
"description of workflow execution."
|
"description of workflow execution."
|
||||||
|
|
||||||
params = types.jsontype
|
params = types.jsontype
|
||||||
"params define workflow type specific parameters. For example, reverse \
|
("params define workflow type specific parameters. For example, reverse "
|
||||||
workflow takes one parameter 'task_name' that defines a target task."
|
"workflow takes one parameter 'task_name' that defines a target task.")
|
||||||
|
|
||||||
task_execution_id = wtypes.text
|
task_execution_id = wtypes.text
|
||||||
"reference to the parent task execution"
|
"reference to the parent task execution"
|
||||||
@ -282,8 +282,8 @@ class Task(resource.Resource):
|
|||||||
workflow_execution_id = wtypes.text
|
workflow_execution_id = wtypes.text
|
||||||
|
|
||||||
state = wtypes.text
|
state = wtypes.text
|
||||||
"state can take one of the following values: \
|
("state can take one of the following values: "
|
||||||
IDLE, RUNNING, SUCCESS, ERROR, DELAYED"
|
"IDLE, RUNNING, SUCCESS, ERROR, DELAYED")
|
||||||
|
|
||||||
state_info = wtypes.text
|
state_info = wtypes.text
|
||||||
"an optional state information string"
|
"an optional state information string"
|
||||||
|
@ -86,8 +86,8 @@ def run_execution_expiration_policy(self, ctx):
|
|||||||
)
|
)
|
||||||
db_api.delete_workflow_execution(execution.id)
|
db_api.delete_workflow_execution(execution.id)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
msg = "Failed to delete [execution_id=%s]\n %s" \
|
msg = ("Failed to delete [execution_id=%s]\n %s"
|
||||||
% (execution.id, traceback.format_exc(e))
|
% (execution.id, traceback.format_exc(e)))
|
||||||
LOG.warning(msg)
|
LOG.warning(msg)
|
||||||
finally:
|
finally:
|
||||||
auth_ctx.set_ctx(None)
|
auth_ctx.set_ctx(None)
|
||||||
|
@ -126,8 +126,9 @@ class ActionExecutionTestsV2(base.TestCase):
|
|||||||
resp, body = self.client.create_action_execution(
|
resp, body = self.client.create_action_execution(
|
||||||
{
|
{
|
||||||
'name': 'std.http',
|
'name': 'std.http',
|
||||||
'input': '{{"url": "http://localhost:8989/v2/workflows",\
|
'input': ('{{"url": "http://localhost:8989/v2/workflows",'
|
||||||
"headers": {{"X-Auth-Token": "{}"}}}}'.format(token)
|
'"headers": {{"X-Auth-Token": "{}"}}}}'
|
||||||
|
).format(token)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user