sensu-plugins-zfs 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af3181bd452635facbc5db5e3f8b0462fd45bb23
4
- data.tar.gz: e061930832e9e5437743fa3e47fa96c12c9f6954
3
+ metadata.gz: 79903588d9fbbf1fa3d0a299d29907c00cc06437
4
+ data.tar.gz: 9e6f45da6b922fa26b4554ebea2f08169d0c7278
5
5
  SHA512:
6
- metadata.gz: 08fc2e22d2351e9459ad0e46131495c4dcfb4c8ee9a98bf670a1abb2e17a518200ae231ed330043a9c292a3fd2f36bc58548c6a5a4b0d2a7df8fe8b844413318
7
- data.tar.gz: ccafea25f6d9bc95e1cae8e0a24b0b9ab85b4a88266bd30ef02d6a718d5c26db4fdd424db234a7f01e80dafad0c9b89a4476e2920c9e428eac575562e54da768
6
+ metadata.gz: 4b15e7a04073b5334646f6bd98c1171c4e97e58e3fbafce2f9bd3ea1492527e6879768b5d43447b475714efa72cb5ac393abc52246f144b56e110476bc952472
7
+ data.tar.gz: 70056fbaab906f471c8cc4101011402894bca7d67a607d207b346629153b6f5f1527e8224c0f9c38e8a06e4194db1df725db10bfaf386711dabfad8c36567cfa
@@ -1,3 +1,3 @@
1
1
  module SensuPluginsZFS
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -43,7 +43,7 @@ module SensuPluginsZFS
43
43
  end
44
44
 
45
45
  def ok?
46
- return @state =~ /(ONLINE|AVAIL)/ &&
46
+ return !!(@state =~ /(ONLINE|AVAIL)/) &&
47
47
  @read == 0 &&
48
48
  @write == 0 &&
49
49
  @checksum == 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-zfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Nørgaard