diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-29 04:15:36 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-29 04:15:36 +0000 |
| commit | bb9c813feb3c6a27a3765d593cae56e800b46fb1 (patch) | |
| tree | a26e20648532ee8bc0caf42682c2d4084a146a96 /lib/puppet/relationship.rb | |
| parent | 7ae62a5dd2323c38b2dd5ba662d8c140b0f9345c (diff) | |
| download | puppet-bb9c813feb3c6a27a3765d593cae56e800b46fb1.tar.gz puppet-bb9c813feb3c6a27a3765d593cae56e800b46fb1.tar.xz puppet-bb9c813feb3c6a27a3765d593cae56e800b46fb1.zip | |
Did a short-cut on the graphing, since we currently only support one type of subscription. This solution still will not scale to all that many edges, but it works, although it will fail if we need to support different types of subcriptions.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1983 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/relationship.rb')
| -rw-r--r-- | lib/puppet/relationship.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/relationship.rb b/lib/puppet/relationship.rb index 879beeab7..15f67b384 100644 --- a/lib/puppet/relationship.rb +++ b/lib/puppet/relationship.rb @@ -46,9 +46,9 @@ class Puppet::Relationship < GRATR::Edge # Does the passed event match our event? This is where the meaning # of :NONE comes from. def match?(event) - if event == :NONE or self.event == :NONE + if self.event.nil? or event == :NONE or self.event == :NONE return false - elsif self.event == :ALL_EVENTS or event == :ALL_EVENTS or event == self.event + elsif self.event == :ALL_EVENTS or event == self.event return true else return false |
