Comments (1)
Followed the steps to reproduce this. Running an interactive shell in the container and editing the info.py
to give output of the extension its processing it seems that chaostoolkit-addons
doesnt have a licence string set.
/home/svc # chaos info extensions
NAME VERSION LICENSE DESCRIPTION
#####################
ExtensionInfo(name='chaostoolkit-reliably', version='0.75.0', summary='Reliably CLI', license='Apache-2.0', author=None, url=None)
chaostoolkit-reliably 0.75.0 Apache-2.0 Reliably CLI
#####################
ExtensionInfo(name='chaostoolkit-addons', version='0.9.0', summary='Addons for your Chaos Toolkit experiments', license=None, author='Chaos Toolkit', url='https://chaostoolkit.org')
Traceback (most recent call last):
The info file is iterating over the extensions and wants to print a summary table that includes the licence type
extensions = list_extensions()
for extension in extensions:
summary = extension.summary.replace(
"Chaos Toolkit Extension for ", ""
)[:50]
click.echo(
fmt.format(
extension.name,
extension.version,
extension.license,
summary,
)
)
I have only started learning chaostoolkit in the last few days so I am not sure if it is mandatory for all addons to provide a licence type or not. However if its not mandatory then something like the following in info.py
could be used to create the string when the type is None.
click.echo(
fmt.format(
extension.name,
extension.version,
extension.license or "NONE",
summary,
)
)
OUTPUT
/home/svc # chaos info extensions
NAME VERSION LICENSE DESCRIPTION
chaostoolkit-reliably 0.75.0 Apache-2.0 Reliably CLI
chaostoolkit-addons 0.9.0 NONE Addons for your Chaos Toolkit experiments
Alternatively if licence is a mandatory field for extensions then I would suggest the code should not load extensions when extensions = list_extensions()
is called and in the chaoslib info.py
it should only append after validating mandatory fields.
The more intermediate fix for this would be to update the chaostoolkit-addons
project to export the licence like the chaostoolkit-reliably
project does for example.
from chaostoolkit.
Related Issues (20)
- Make it easy to add items to an experiment HOT 2
- Using Kubernetes context 'default' from config '/home/interns_chaos/.kube/config' HOT 4
- Can not user non-default serviceAccountName HOT 1
- Not able to see -var-file options HOT 2
- Consider rewriting the core in Rust HOT 2
- Allow pass any variable via CLI as arguments HOT 2
- Variables from a .vars file HOT 2
- chaostoolkit azure plugin network latency for vmss how it is introducing latency into the network HOT 1
- Container image contains vulnerabilities HOT 1
- Switch to another log library as logzero is now archived HOT 2
- importlib metadata failure with Python 3.7 and 3.8 HOT 3
- chaostoolkit-reporting error HOT 2
- The link to the documentation in the documenation is incorrect
- Can't run chaos HOT 4
- Python 3.12 can not install chaostoolkit-reporting successfully. HOT 7
- Chaos report feature dos not work HOT 1
- Failed parsing YAML experiment: while parsing a flow sequence HOT 1
- settings command fails ungracefully when file does not exist
- Broken katacoda.com link in the documentation HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chaostoolkit.