puppet 7.4.0-x86-mingw32 → 7.4.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 +4 -4
- data/Gemfile.lock +3 -3
- data/lib/puppet/provider/user/useradd.rb +8 -1
- data/lib/puppet/version.rb +1 -1
- data/spec/unit/provider/user/useradd_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95406e38222669faaf5c03e90fc7c6e5efe37468ffaae89f4f20897f282b925d
|
4
|
+
data.tar.gz: 71f8a1762c8ec1babbe2d6849bed9f11de240c902ff4f64911cd2f683d88a9ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3078364bf2306d7999fbf38ecdf829277baa36d50ffc4b3270db56c0212ac43eb933de11b792c978ff04c6c647a7faa1123ad63e9b1d1a2cd9cb4e29ad19e70e
|
7
|
+
data.tar.gz: 47cadc342ea90133970072956064052bdef5decd579019168160440fcd664beca5e649d5f1356aaa9c9ae862eec07f12ece7ce695ebdd042a507d192571e1e6b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
puppet (7.4.
|
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.
|
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.
|
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
|
-
|
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
|
|
data/lib/puppet/version.rb
CHANGED
@@ -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(
|
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(
|
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(
|
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.
|
4
|
+
version: 7.4.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-
|
11
|
+
date: 2021-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|