lib/ohai/plugins/linux/platform.rb in ohai-13.6.0 vs lib/ohai/plugins/linux/platform.rb in ohai-13.7.0
- old
+ new
@@ -247,10 +247,10 @@
# no way to determine platform_version in a rolling release distribution
# kernel release will be used - ex. 3.13
platform_version `uname -r`.strip
elsif File.exist?("/etc/alpine-release")
platform "alpine"
- platform_version File.read("/etc/alpine-release").strip()
+ platform_version File.read("/etc/alpine-release").strip
elsif File.exist?("/usr/lib/os-release")
contents = File.read("/usr/lib/os-release")
if /Clear Linux/ =~ contents
platform "clearlinux"
platform_version contents[/VERSION_ID=(\d+)/, 1]