Skip to content

Commit a6292c4

Browse files
authored
Merge pull request #296 from cloudify-incubator/1.25.12-build
2 parents 3b3697c + 18ee100 commit a6292c4

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
1.25.12: Allow kwargs override in custom workflow.
12
1.25.11: Do not log secrets by default.
23
1.25.10: Add plugin_1_4.yaml
34
1.25.9:

cloudify_custom_workflow/tasks.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ def log(**kwargs):
3636

3737

3838
@workflow
39-
def customwf(nodes_to_runon, operations_to_execute, **kwargs):
39+
def customwf(nodes_to_runon,
40+
operations_to_execute,
41+
allow_kwargs_override=False,
42+
**kwargs):
4043

4144
ctx = workflow_ctx
4245
ctx.logger.info("Starting Custom Workflow")
@@ -70,8 +73,10 @@ def customwf(nodes_to_runon, operations_to_execute, **kwargs):
7073
instance.send_event(
7174
'Starting to {} on instance {} of node {}'
7275
.format(operation, instance.id, node.id)),
73-
instance.execute_operation(operation,
74-
kwargs=kwargs),
76+
instance.execute_operation(
77+
operation,
78+
allow_kwargs_override=allow_kwargs_override,
79+
kwargs=kwargs),
7580
instance.send_event('Done {}'.format(operation)))
7681

7782
graph.execute()

cloudify_custom_workflow/tests/test_workflows.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ def test_customwf(self):
7474
with patch('cloudify_custom_workflow.tasks.workflow_ctx', _ctx):
7575
tasks.customwf(ctx=_ctx, nodes_to_runon=['node_id'],
7676
operations_to_execute=['operation1'])
77-
_instance.execute_operation.assert_called_with('operation1',
78-
kwargs={})
77+
_instance.execute_operation.assert_called_with(
78+
'operation1',
79+
allow_kwargs_override=False,
80+
kwargs={})
7981

8082

8183
if __name__ == '__main__':

plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
cfy_util: &utilities_plugin
44
executor: central_deployment_agent
55
package_name: cloudify-utilities-plugin
6-
package_version: '1.25.11'
6+
package_version: '1.25.12'
77

88
cfy_files: *utilities_plugin
99

plugin_1_4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
cfy_util: &utilities_plugin
44
executor: central_deployment_agent
55
package_name: cloudify-utilities-plugin
6-
package_version: '1.25.11'
6+
package_version: '1.25.12'
77

88
cfy_files: *utilities_plugin
99

v2_plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
cfy_util: &utilities_plugin
44
executor: central_deployment_agent
55
package_name: cloudify-utilities-plugin
6-
package_version: '1.25.11'
6+
package_version: '1.25.12'
77

88
cfy_files: *utilities_plugin
99

0 commit comments

Comments
 (0)