Skip to content

Conversation

@arm4b
Copy link
Member

@arm4b arm4b commented Oct 16, 2018

A small bug, found during the StackStorm/stackstorm-k8s#30 K8s work

Loading K/V from an empty file throws an error and fails with non-zero exit code.

Error

$ touch st2kv.yaml
$ st2 key load st2kv.yaml 
ERROR: 'NoneType' object has no attribute '__getitem__'

$ echo $?
1

Fixed version

$ st2 key load st2kv.yaml 
No matching items found

@arm4b arm4b added RFR and removed WIP labels Oct 16, 2018
@arm4b arm4b merged commit 53c2982 into master Oct 16, 2018
@arm4b arm4b deleted the fix/kv-load-empty-file branch October 16, 2018 21:51
@cognifloyd cognifloyd removed the RFR label Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants