puppetclassify 0.1.6 → 0.1.7

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/puppet_https.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a263281371dfe1516c40c60aa682e5de078a4b7
4
- data.tar.gz: ff35572dea53621a79790ed5e6bf91b65a8ba257
3
+ metadata.gz: 5250c1eb3c32ccb86d0ef618bca29d3329a97b35
4
+ data.tar.gz: d4e0d119a544c5e35e560b1477a2269c91961bfa
5
5
  SHA512:
6
- metadata.gz: c6ef8817dcd5d0c829573a52db46db2d6e5a4645289dae740544604d46b9a433bc817e664a9e98550fc0e30da35985fcb48f0b20983fa1a604e0fbaac6b1f76a
7
- data.tar.gz: 044d06e59b36d1d86ade763648a8aff7784f5ee645e8cd3ddb26b8dcc07a540bdd2a79c0b0024734c30795d49a9efe547ecc3b7c49219db28fb521fb1b0532cf
6
+ metadata.gz: 10517340d864c6c2dacb7932ec44d0cca9b8223564c304d69caa43c57b569a399ea85a191354072226731b2d8ec932b22fb1b0ae35ec44af01979bea3d9d6b11
7
+ data.tar.gz: d9c944525c38d9fd507dc39cb8745780c9808c4d033d4cfc68327f46ca82b66ac66c5f9b8e191e49a232a2f9c90bc7850308b6fb4031d73c2b22f67d542cc7ec
@@ -15,7 +15,7 @@ class PuppetHttps
15
15
  #
16
16
  # token auth takes precedence over cert auth (in the case that both methods are provided)
17
17
 
18
- default_token_path = File.join(ENV['HOME'], '.puppetlabs', 'token')
18
+ default_token_path = ENV['HOME'].nil? ? nil : File.join(ENV['HOME'], '.puppetlabs', 'token')
19
19
 
20
20
  ca_cert_path = settings['ca_certificate_path']
21
21
  cert_path = settings['certificate_path']
@@ -29,7 +29,7 @@ class PuppetHttps
29
29
  'token'
30
30
  when (cert_path and pkey_path)
31
31
  'cert'
32
- when File.exists?(default_token_path)
32
+ when default_token_path && File.exists?(default_token_path)
33
33
  'token'
34
34
  else
35
35
  nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetclassify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-15 00:00:00.000000000 Z
11
+ date: 2017-05-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A ruby library to interface with the classifier service
14
14
  email: info@puppet.com