Skip to content

Commit 28f2ca8

Browse files
committed
fix magic
1 parent cf56898 commit 28f2ca8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 0.1.24
44

55
* modified **download** resource to use **curl** instead of **wget**
6+
* fix magic hash fact
67

78
## 0.1.23
89

lib/facter/eypconf_generic_id.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
genetic_id = Facter::Util::Resolution.exec("bash -c 'cat /opt/eypconf/id/#{i}'").to_s
55

66
if i[0]=='.' then
7-
fact_name=i[1..-1]
7+
if i == ".magic" then
8+
fact_name="magic_hash"
9+
else
10+
fact_name=i[1..-1]
11+
end
812
else
913
fact_name=i
1014
end

0 commit comments

Comments
 (0)