You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by "oEscal (via GitHub)" <gi...@apache.org> on 2023/10/04 09:22:21 UTC
[I] The pydeploy's annotation and annotation-file do not work correctly [openwhisk-composer-python]
oEscal opened a new issue, #17:
URL: https://github.com/apache/openwhisk-composer-python/issues/17
While trying to use the `pydeploy`'s `annotation` flag, I got the following error:
```bash
$ pydeploy <composition> <composition.json> --annotation "a=b"
'NoneType' object is not iterable
```
Moreover, I also noticed that using the `annotation-file` flag did nothing (the created action did not present the defined annotations, and `pydeploy` did not return any error).
After analyzing the source code, I noticed that the `main` function was wrongly doing two verifications for the same flag:
```python
if args.annotation is not None:
composition['annotations'].extend([keyValue(a[0]) for a in args.annotation])
if args.annotation is not None:
composition['annotations'].extend([keyValueFromFile(a[0]) for a in args.annotation_file])
```
The last verification is incorrect, as it should be done respecting the `annotation-file` flag. Therefore, when we only use the `annotation flag`, it will trigger both verifications and throw an error at the second one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] The pydeploy's annotation and annotation-file do not work correctly [openwhisk-composer-python]
Posted by "oEscal (via GitHub)" <gi...@apache.org>.
oEscal closed issue #17: The pydeploy's annotation and annotation-file do not work correctly
URL: https://github.com/apache/openwhisk-composer-python/issues/17
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org