Parse shards depending on the version of InfluxDB