Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity subscriptions are stored incorrectly #2753

Closed
echlebek opened this issue Feb 25, 2019 · 1 comment · Fixed by #2754
Closed

Entity subscriptions are stored incorrectly #2753

echlebek opened this issue Feb 25, 2019 · 1 comment · Fixed by #2754
Assignees
Labels
Milestone

Comments

@echlebek
Copy link
Contributor

Expected Behavior

Entity subscriptions are an array of subscriptions that are specified on the agent, plus an extra entity subscription added by the server.

i.e.

["eenie", "meenie", "miney", "moe", "entity:tiger"]

Current Behavior

["eenie,meenie,miney,moe", "entity:tiger"]

The array of subscriptions is always of length 2.

Steps to Reproduce (for bugs)

sensuctl entity list --format json | jq .[0].subscriptions

Context

Encountered while doing development work.

@echlebek echlebek added the bug label Feb 25, 2019
@echlebek
Copy link
Contributor Author

Reproduced by @ccressent. @amdprophet observed that the problem only manifests when agents are launched with the --subscriptions flag. It seems that the subscriptions are not properly split in this case.

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

Successfully merging a pull request may close this issue.

1 participant