puppet 7.4.0 → 7.4.1

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: f0f22910c91937d056ea9cf856bd6bd0dccb5cd87f91dfee3ee4fe7a4fa7173a
4
- data.tar.gz: bbafd9dc102a1af3390d3c13499eb264d3de9aaab59f97f560f407fc3e608af3
3
+ metadata.gz: 1dc7fca54856073eca2fb108213f2870e9d9cbe9c176bf4c0ff1820182aa1487
4
+ data.tar.gz: 0e73ef249f8a19167ba68b84e3d8ddf2a5fcf82a5689d7955ed777feff43c5cf
5
5
  SHA512:
6
- metadata.gz: c051a9734e730355205789fa88d65e769086d3caa3fb3c76b9098e21aefa34df30bb577e7cfc7f1e4add4e43df1517188536b9c7d77b35d89a50d67c81cafa7e
7
- data.tar.gz: 83244048f67693f29c058bf4b80c5037467a94a6a38d84f4838aa4eb451aefc1596d3d65889c7cdbe93a9e241d82c8c80ad4674e8de715a231ff07aa6ffebfd0
6
+ metadata.gz: 313206ed5d0288d41c429eaef41b6507afd490298ff4b549bae911dffcbd06c2a1579329e4cf9ae94d5a1c2888d981c51730ec38450298cfd63b35f07cd34ca3
7
+ data.tar.gz: a9204bfb79227de4126b352a12dce922723de2910c621ebfa28e220756440c3b76f34d4e489e7c5d898a93a9f79297c044ac3bb8dff420279493dc8f75098a1a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- puppet (7.4.0)
4
+ puppet (7.4.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)
@@ -68,7 +68,7 @@ GEM
68
68
  parser (2.7.2.0)
69
69
  ast (~> 2.4.1)
70
70
  powerpack (0.1.3)
71
- pry (0.13.1)
71
+ pry (0.14.0)
72
72
  coderay (~> 1.1)
73
73
  method_source (~> 1.0)
74
74
  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 = '7.4.0'
9
+ PUPPETVERSION = '7.4.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: 7.4.0
4
+ version: 7.4.1
5
5
  platform: ruby
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