This commit is contained in:
Connor Martin 2024-01-22 14:01:23 -08:00
Родитель b545c53a15
Коммит 6162cc97a0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 71BE275D10522550
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -45,7 +45,7 @@ module Octofacts
add_fact_to_index(key) unless indexed_fact?(key)
matching_nodes = index[key][value.to_s]
raise Octofacts::Errors::NoFactsError if matching_nodes.nil?
self.nodes = nodes & matching_nodes
@nodes = nodes & matching_nodes
end
self
@ -62,7 +62,7 @@ module Octofacts
end
end
self.nodes = matching_nodes
@nodes = matching_nodes
self
end
@ -72,7 +72,7 @@ module Octofacts
add_fact_to_index(key) unless indexed_fact?(key)
matching_nodes = index[key][value.to_s]
unless matching_nodes.nil?
self.nodes = (matching_nodes.to_set + nodes.to_set).to_a
@nodes = (matching_nodes.to_set + nodes.to_set).to_a
end
end