diff options
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/transaction.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/transaction.rb b/lib/puppet/transaction.rb index f3d05b5ef..fe86c2595 100644 --- a/lib/puppet/transaction.rb +++ b/lib/puppet/transaction.rb @@ -544,7 +544,8 @@ class Transaction # Set an edge to be triggered when we evaluate its target. def set_trigger(edge) - return unless edge.callback + return unless method = edge.callback + return unless edge.target.respond_to?(method) if edge.target.respond_to?(:ref) edge.source.info "Scheduling %s of %s" % [edge.callback, edge.target.ref] end |