blob: 3c7c4d9b430720b874123b414f0c5cde788b4a60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
test_name "#7670: Facter should properly detect operatingsystem on Ubuntu after a clear"
script_contents = <<-OS_DETECT
require 'facter'
Facter['operatingsystem'].value
Facter.clear
exit Facter['operatingsystem'].value == 'Ubuntu'
OS_DETECT
script_name = "/tmp/facter_os_detection_test_#{$$}"
agents.each do |agent|
next unless agent['platform'].include? 'ubuntu'
create_remote_file(agent, script_name, script_contents)
on(agent, "ruby #{script_name}")
end
|