waistband 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/waistband/connection.rb +1 -1
- data/lib/waistband/version.rb +1 -1
- metadata +1 -1
data/lib/waistband/connection.rb
CHANGED
@@ -111,7 +111,7 @@ module Waistband
|
|
111
111
|
fetched = execute! 'put', "#{@index.config_name}/_alias/#{alias_name}"
|
112
112
|
parsed = JSON.parse(fetched)
|
113
113
|
|
114
|
-
error_with('Alias not OK', result: parsed, kind: 'AliasNotOk')
|
114
|
+
error_with('Alias not OK', result: parsed, kind: 'AliasNotOk') if parsed.keys.include?('ok') && parsed['ok'] != true
|
115
115
|
|
116
116
|
true
|
117
117
|
end
|
data/lib/waistband/version.rb
CHANGED