Commit 448a9d89 authored by Stan Hu's avatar Stan Hu

Fix bugs with parsing storage shards

parent 3a8d1ddc
......@@ -215,7 +215,7 @@ class GeoNodeStatus {
this.$secondaryVersion.text(`${status.version} (${status.revision}) - ${versionMismatch}`);
}
if (!status.storage_shards_match) {
if (status.storage_shards_match === null) {
this.$secondaryStorage.text('UNKNOWN');
} else if (status.storage_shards_match) {
this.$secondaryStorage.removeClass(`${storageMismatchClass}`);
......
......@@ -19,7 +19,7 @@ class StorageShard
def self.all
Settings.repositories.storages.map do |name, params|
config = params.symbolize_keys.merge(name: name)
config.slice!(allowed_params)
config.slice!(*allowed_params)
StorageShard.new(config)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment