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 +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: 9cdfc9ad60e48b32a438621e76474941e6d32f2f7876b256bfa1993d25913bc8
|
4
|
+
data.tar.gz: 1dba883ce075c934f8ad5effa1d0b50c7948fe66e1134f48dec25c0381b4016e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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
|
-
|
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: 6.21.
|
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-
|
11
|
+
date: 2021-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|