File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ def config_status
320320 config = getconfig
321321 result = { }
322322
323- result [ :autoboot ] = ( config [ :autoboot ] ) ? config [ :autoboot ] . to_sym : :true
323+ result [ :autoboot ] = config [ :autoboot ] ? config [ :autoboot ] . to_sym : :true
324324 result [ :pool ] = config [ :pool ]
325325 result [ :shares ] = config [ :shares ]
326326 dir = config [ 'inherit-pkg-dir' ]
Original file line number Diff line number Diff line change 66the zone's filesystem (with the `path` attribute), the zone resource will
77autorequire that directory."
88
9- module Puppet ::Zone
9+ module Puppet ::Zone # rubocop:disable Style/ClassAndModuleChildren
1010 # Zone state machine
1111 class StateMachine
1212 # A silly little state machine.
@@ -200,7 +200,7 @@ def insync?(is)
200200 end
201201
202202 munge do |value |
203- if %r{%s} . match? ( value )
203+ if value . include? ( '%s' )
204204 value % @resource [ :name ]
205205 else
206206 value
Original file line number Diff line number Diff line change 1010
1111 # inherit /sbin on solaris10 until PUP-3722
1212 def config_inherit_string ( agent )
13- if %r{solaris-10} . match? ( agent [ 'platform' ] )
13+ if agent [ 'platform' ] . include? ( 'solaris-10' )
1414 "inherit => '/sbin'"
1515 else
1616 ''
Original file line number Diff line number Diff line change 1010
1111 # inherit /sbin on solaris10 until PUP-3722
1212 def config_inherit_string ( agent )
13- if %r{solaris-10} . match? ( agent [ 'platform' ] )
13+ if agent [ 'platform' ] . include? ( 'solaris-10' )
1414 "inherit => '/sbin'"
1515 else
1616 ''
You can’t perform that action at this time.
0 commit comments