diff options
Diffstat (limited to 'lib/puppet/type/port.rb')
-rwxr-xr-x | lib/puppet/type/port.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/type/port.rb b/lib/puppet/type/port.rb index f186023be..6b9ace239 100755 --- a/lib/puppet/type/port.rb +++ b/lib/puppet/type/port.rb @@ -29,7 +29,7 @@ # # We actually want to return the whole array here, not just the first # # value. # def should -# if defined? @should +# if defined?(@should) # if @should[0] == :absent # return :absent # else @@ -61,13 +61,13 @@ # desc 'Any aliases the port might have. Multiple values must be # specified as an array. Note that this property is not the same as # the "alias" metaparam; use this property to add aliases to a port -# in the services file, and "alias" to aliases for use in your Puppet +# in the services file, and "alias" to aliases for use in your Puppet # scripts.' # # # We actually want to return the whole array here, not just the first # # value. # def should -# if defined? @should +# if defined?(@should) # if @should[0] == :absent # return :absent # else |