ysde/grafana-backup-tool

Version check chokes on prerelease

Closed this issue · 1 comments

Hey, I'm playing with the grafana/grafana:master container and it returns 6.4.0-pre as it's version. The script chokes on that since after the splits it's still not an number 640-pre.

Relevent line

-        return int(''.join(ver.split(".")))
+        return int(''.join(ver.split("-")[0].split(".")))

Works as a quick fix. I'll test on a non-master container/install and put in a pr