Suricata-update add-source for previously disabled source

When you add a source with suricata-update add-source and then disable that source, there is no way to re-enable it without getting an error.

    $ sudo suricata-update add-source abuse.ch-URLhaus-IDS https://urlhaus.abuse.ch/downloads/urlhaus_suricata.tar.gz 
    $ ls -la ./sources/
    -rw-r--r-- 1 root root  108 Jul 24 18:03 abuse.ch-URLhaus-IDS.yaml

    $ sudo suricata-update disable-source abuse.ch-URLhaus-IDS
    <Info> -- Source abuse.ch-URLhaus-IDS has been disabled
    $ ls -la ./sources/
    -rw-r--r-- 1 root root  108 Jul 24 18:03 abuse.ch-URLhaus-IDS.yaml.disabled

    $ sudo suricata-update add-source abuse.ch-URLhaus-IDS https://urlhaus.abuse.ch/downloads/urlhaus_suricata.tar.gz 
    <Error> -- A source with name abuse.ch-URLhaus-IDS already exists.

    $ sudo suricata-update enable-source abuse.ch-URLhaus-IDS
    <Info> -- Re-enabling previously disabled source for abuse.ch-URLhaus-IDS.
    <Error> -- Unknown source: abuse.ch-URLhaus-IDS

Hi @James_Lagermann!
Welcome to to our forum. I checked what you have mentioned. It is indeed happening and is not the correct behavior. Do you mind opening a redmine ticket for this? The content you have posted here works for the redmine too.
We are looking into it and shall get it fixed soon.
Thank you very much!

I’ll open a ticket this morning (as soon as I figure out how to).

Thanks James. Send a dm if you need assistance.