puppet 6.21.0-x86-mingw32 → 6.21.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28eae27779b59a76708a423a46d1f7decf02a5c2f85b590fe42654aa118dcec5
4
- data.tar.gz: f830f2683079cb29863287b16f0b3066c717caf03c154257c4fea3a0576985f6
3
+ metadata.gz: 9cdfc9ad60e48b32a438621e76474941e6d32f2f7876b256bfa1993d25913bc8
4
+ data.tar.gz: 1dba883ce075c934f8ad5effa1d0b50c7948fe66e1134f48dec25c0381b4016e
5
5
  SHA512:
6
- metadata.gz: 1f7dc6fc50e3b96b376ae28e0d33b84a35e145420d929e0c87b5e693febb90ea75d86d694e2fa15b24ab6a63c2982010642567621703bbfa83d3f82a8d8c9af3
7
- data.tar.gz: 67c0fc9d13c1cc66d7b2a2b3a25347d4e86d3647db898c0d037d47f835c5326cf986aa8b0caea98308f45ceb73f0c640d4ebcd133066931ce32a65f1bf93f8e8
6
+ metadata.gz: 64d8f3c27432f447545212b678c900492b166d5439389fab57ab23f022f11f566fd2543a3119e377f3df862678572831bd13308a96f2337529d91d8e3bdd9b38
7
+ data.tar.gz: 797fd13dad8decea235e88f2a2ed7139f5eb406634923b53cf68bcf1507912366661500de06cae074f4608eb57e5be538229d416dbd5cab07d20f91e12805c40
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- puppet (6.21.0)
4
+ puppet (6.21.1)
5
5
  CFPropertyList (~> 2.2)
6
6
  concurrent-ruby (~> 1.0)
7
7
  deep_merge (~> 1.0)
@@ -29,7 +29,7 @@ GEM
29
29
  deep_merge (1.2.1)
30
30
  diff-lcs (1.4.4)
31
31
  docopt (0.6.1)
32
- facter (4.0.50)
32
+ facter (4.0.51)
33
33
  hocon (~> 1.3)
34
34
  thor (>= 1.0.1, < 2.0)
35
35
  fast_gettext (1.1.2)
@@ -69,7 +69,7 @@ GEM
69
69
  parser (2.7.2.0)
70
70
  ast (~> 2.4.1)
71
71
  powerpack (0.1.3)
72
- pry (0.13.1)
72
+ pry (0.14.0)
73
73
  coderay (~> 1.1)
74
74
  method_source (~> 1.0)
75
75
  public_suffix (4.0.6)
@@ -104,7 +104,14 @@ Puppet::Type.type(:user).provide :useradd, :parent => Puppet::Provider::NameServ
104
104
 
105
105
  def localgid
106
106
  user = finduser(:account, resource[:name])
107
- return user[:gid] if user
107
+ if user
108
+ begin
109
+ return Integer(user[:gid])
110
+ rescue ArgumentError
111
+ Puppet.debug("Non-numeric GID found in /etc/passwd for user #{resource[:name]}")
112
+ return user[:gid]
113
+ end
114
+ end
108
115
  false
109
116
  end
110
117
 
@@ -6,7 +6,7 @@
6
6
  # Raketasks and such to set the version based on the output of `git describe`
7
7
 
8
8
  module Puppet
9
- PUPPETVERSION = '6.21.0'
9
+ PUPPETVERSION = '6.21.1'
10
10
 
11
11
  ##
12
12
  # version is a public API method intended to always provide a fast and
@@ -360,14 +360,14 @@ describe Puppet::Type.type(:user).provider(:useradd) do
360
360
  resource[:forcelocal] = true
361
361
  allow(Puppet::FileSystem).to receive(:exist?).with('/etc/passwd').and_return(true)
362
362
  allow(Puppet::FileSystem).to receive(:each_line).with('/etc/passwd').and_yield(content)
363
- expect(provider.gid).to eq('999')
363
+ expect(provider.gid).to eq(999)
364
364
  end
365
365
 
366
366
  it "should fall back to nameservice GID when forcelocal is false" do
367
367
  resource[:forcelocal] = false
368
- allow(provider).to receive(:get).with(:gid).and_return('1234')
368
+ allow(provider).to receive(:get).with(:gid).and_return(1234)
369
369
  expect(provider).not_to receive(:localgid)
370
- expect(provider.gid).to eq('1234')
370
+ expect(provider.gid).to eq(1234)
371
371
  end
372
372
  end
373
373
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.21.0
4
+ version: 6.21.1
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-05 00:00:00.000000000 Z
11
+ date: 2021-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facter