Merge pull request #767 from jmk61/MODULES-2675
Fixes unique server_id within my.cnf Ticket/MODULES-2675
This commit is contained in:
commit
b91630d7a3
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
def get_mysql_id
|
||||
Facter.value(:macaddress).split(':').inject(0) { |total,value| (total << 4) + value.hex }
|
||||
Facter.value(:macaddress).split(':').inject(0) { |total,value| (total << 6) + value.hex }
|
||||
end
|
||||
|
||||
Facter.add("mysql_server_id") do
|
||||
|
|
|
@ -11,7 +11,7 @@ describe Facter::Util::Fact do
|
|||
Facter.fact(:macaddress).stubs(:value).returns('3c:97:0e:69:fb:e1')
|
||||
end
|
||||
it do
|
||||
Facter.fact(:mysql_server_id).value.to_s.should == '72898961'
|
||||
Facter.fact(:mysql_server_id).value.to_s.should == '66961985441'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue