Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Global plugin config values are not being set properly #1495

Closed
jcooklin opened this issue Jan 27, 2017 · 0 comments
Closed

Global plugin config values are not being set properly #1495

jcooklin opened this issue Jan 27, 2017 · 0 comments
Labels

Comments

@jcooklin
Copy link
Collaborator

When snap is started with a config and a plugin has a config item with a default value the value provided in the config (the one snap was started with) should override the plugins default value.

Given: snapteld --config config.yml
Run: snaptel task create -t task.yml

config.yml:

---
control:
  plugins:
    collector:
      mock:
        all:
          name: jane

task.yml:

---
version: 1
schedule:
    type: simple
    interval: 1s

workflow:
    collect:
        metrics:
            "/intel/mock/foo":

Current result: The above will result in the config{'name': 'bob'} being associated to /intel/mock/foo

Expected result: The config on /intel/mock/foo should be {'name': 'jane'}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants