StackStorm / st2sdk

This repository contains different utilities and tools which help with the StackStorm integration pack development.
Apache License 2.0
10 stars 11 forks source link

config.yaml is deprecated #24

Open trstruth opened 5 years ago

trstruth commented 5 years ago

When using st2sdk bootstrap <pack name> creates a directory containing a config.yaml file. Registering this pack logs the error

2018-11-16 20:06:53,330 ERROR [-] Pack "tristan" contains a deprecated config.yaml file (/opt/stackstorm/packs.dev/tristan/config.yaml). Support for "config.yaml" files has been deprecated in StackStorm v1.6.0 in favor of config.schema.yaml config schema files and config files in /opt/stackstorm/configs/ directory. Support for config.yaml files has been removed in the release (v2.4.0) so please migrate. For more information please refer to https://docs.stackstorm.com/reference/pack_configs.html

Renaming the config.yaml file to config.schema.yaml logs a warning

2018-11-16 20:07:32,383 WARNING [-] Failed to register sensors: Failed to register pack "tristan": Config schema "/opt/stackstorm/packs.dev/tristan/config.schema.yaml" is empty and invalid.

Seems like it would be okay to just remove the generation of this config file, and have users of st2sdk just generate the file manually once they need it.