File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -184,11 +184,14 @@ def apply(options = {})
184
184
# The relationship_graph form of the catalog. This contains all of the
185
185
# dependency edges that are used for determining order.
186
186
#
187
+ # @param given_prioritizer [Puppet::Graph::Prioritizer] The prioritization
188
+ # strategy to use when constructing the relationship graph. Defaults the
189
+ # being determined by the `ordering` setting.
187
190
# @return [Puppet::Graph::RelationshipGraph]
188
191
# @api public
189
- def relationship_graph
192
+ def relationship_graph ( given_prioritizer = nil )
190
193
if @relationship_graph . nil?
191
- @relationship_graph = Puppet ::Graph ::RelationshipGraph . new ( prioritizer )
194
+ @relationship_graph = Puppet ::Graph ::RelationshipGraph . new ( given_prioritizer || prioritizer )
192
195
@relationship_graph . populate_from ( self )
193
196
end
194
197
@relationship_graph
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ def changed?
138
138
end
139
139
140
140
def relationship_graph
141
- catalog . relationship_graph
141
+ catalog . relationship_graph ( @prioritizer )
142
142
end
143
143
144
144
def resource_status ( resource )
You can’t perform that action at this time.
0 commit comments