Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 8a5d17e

Browse files
committed
mysql_server_id was going off limits
See: puppetlabs#872
1 parent 041ef06 commit 8a5d17e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/facter/mysql_server_id.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
def get_mysql_id
2-
Facter.value(:macaddress).split(':').inject(0) { |total,value| (total << 6) + value.hex }
2+
Facter.value(:macaddress).split(':')[2..-1].inject(0) { |total,value| (total << 6) + value.hex }
33
end
44

55
Facter.add("mysql_server_id") do

0 commit comments

Comments
 (0)