We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b545c53 commit 6162cc9Copy full SHA for 6162cc9
lib/octofacts/backends/index.rb
@@ -45,7 +45,7 @@ def select(conditions)
45
add_fact_to_index(key) unless indexed_fact?(key)
46
matching_nodes = index[key][value.to_s]
47
raise Octofacts::Errors::NoFactsError if matching_nodes.nil?
48
- self.nodes = nodes & matching_nodes
+ @nodes = nodes & matching_nodes
49
end
50
51
self
@@ -62,7 +62,7 @@ def reject(conditions)
62
63
64
65
- self.nodes = matching_nodes
+ @nodes = matching_nodes
66
67
68
@@ -72,7 +72,7 @@ def prefer(conditions)
72
73
74
unless matching_nodes.nil?
75
- self.nodes = (matching_nodes.to_set + nodes.to_set).to_a
+ @nodes = (matching_nodes.to_set + nodes.to_set).to_a
76
77
78
0 commit comments