diff options
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/type/cron.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/type/cron.rb b/lib/puppet/type/cron.rb index 332affb..becaeae 100644 --- a/lib/puppet/type/cron.rb +++ b/lib/puppet/type/cron.rb @@ -102,8 +102,8 @@ Puppet::Type.newtype(:cron) do return index end end - else - return ary.index(tmp) if ary.include?(tmp) + elsif ary.include?(tmp) + return ary.index(tmp) end false |