methods/sz_common.rb
# Check we are on Solaris 10 or later
Check we are on Solaris 10 or later
Check we are on Solaris 10 or later
def check_zone_is_installed()
  if options['host-os-name'].to_s.match(/SunOS/)
    if options['host-os-release'].split(/\./)[0].to_i > 10
      exists =  true
    else
      exists = false
    end
  else
    exists = false
  end
  return exists
end
def check_zone_is_installed ( ) if options [ 'host-os-name' ] . to_s . match ( / SunOS / ) if options [ 'host-os-release' ] . split ( / \. / ) [ 0 ] . to_i > 10 exists = true else exists = false end else exists = false end return exists end
Check we are on Solaris 10 or later
Check we are on Solaris 10 or later