stackstorm-exchange / stackstorm-nsone Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Some actions, such as nsone.source.publish
, when successful the api replies with {}
.
Line 40 of action.py checks output and if empty, returns a static key of "deleted": true
. This was originally added because I thought only successful deletion of resources responded this way. I see now that is neither accurate nor an absolute way to check for something so important.
This is also bad as it may give users heart attack when they intended to update something, and get a message of deleted
:(
Solution:
reference if the method
used was delete
as an additional condition, and change else
to have a generic completion message like "completed": true
It looks like the nsone.record.create action is failing with the following stack error:
"stderr": "st2.actions.python.NSOneAction: DEBUG Instantiating NSOneBaseAction()
st2.actions.python.NSOneAction: DEBUG Initializing ns1 client
st2.actions.python.NSOneAction: DEBUG API Key loaded
st2.actions.python.NSOneAction: DEBUG Action running with Module: records, Package: Records, Method: create
Traceback (most recent call last):
File \"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\", line 395, in <module>
obj.run()
File \"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\", line 214, in run
output = action.run(**self._parameters)
File \"/opt/stackstorm/packs/nsone/actions/action.py\", line 18, in run
for k, v in kwargs.items():
RuntimeError: dictionary changed size during iteration
Can someone please fix this? I was able to create records using the REST API so there is something wrong either with the ST2 implementation or the python module ns1-python
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.