Skip to content

bug: emtpy list has the meaning of subscribed to everything #13

Description

@arterrey

collector.py:147

sdata = subscription.collector_data
name = 'selected_collectors'
if name in sdata and sdata[name] and self not in sdata[name]:
    return [], now

if sdata[name] is a empty list then then the above code makes the assumption that the subscription is subscribed to everything - this does seem to be rather over-assuming since an empty list is more likely to mean explicitly not subscribed to anything. Suggest changing it to

sdata = subscription.collector_data
name = 'selected_collectors'
if name in sdata and self not in sdata[name]:
    return [], now

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions