This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-composer-python.git
The following commit(s) were added to refs/heads/master by this push:
new 09d480d Fixed issue #18: the conductor's synthesize function is now
able to process the pydeploy's annotations (#21)
09d480d is described below
commit 09d480ddd2173aab5c26469b2464c0311c1563ac
Author: Pedro Escaleira <[email protected]>
AuthorDate: Thu Oct 5 01:13:34 2023 +0100
Fixed issue #18: the conductor's synthesize function is now able to process
the pydeploy's annotations (#21)
Signed-off-by: Pedro Escaleira <[email protected]>
---
src/conductor/conductor.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/conductor/conductor.py b/src/conductor/conductor.py
index 8a5df1d..783730d 100644
--- a/src/conductor/conductor.py
+++ b/src/conductor/conductor.py
@@ -68,7 +68,8 @@ def synthesize(composition): # dict
{ 'key': 'conductor', 'value': str(composition['ast']) },
{ 'key': 'composerVersion', 'value': composition['version'] },
{ 'key': 'conductorVersion', 'value': __version__ },
- { 'key': 'provide-api-key', 'value': True }
+ { 'key': 'provide-api-key', 'value': True },
+ *composition["annotations"]
]
return { 'name': composition['name'], 'action': { 'exec': { 'kind':
'python:3', 'code':code }, 'annotations': annotations } }