puppet 6.21.0-x64-mingw32 → 6.21.1-x64-mingw32
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.
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: c437e7c3f5b87b0c64f70554285c7114988ac416bf9534905665d62f573b77ff
|
4
|
+
data.tar.gz: d9d825e106d1bd8d96659796fb28969346e8e6ded58483bcd954602ded45ed2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf118639c9b6cc4ebbe76a47c979d9d4d57fb43f4ce2a7c18e2eb50b3acaf27b5be3f2ba56efb5c582667cce576915fd4fc34205a02847bd44ce355419a5eda8
|
7
|
+
data.tar.gz: 3b89af81e60a10aff46f6a82ae438f2bc96e2a272a5fd4ac5fb3d265832dfdcb86a476a516e19cda81bd0e762fa3ad0cc0938202468e834d0cb42bdda73cc4a7
|
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: x64-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
|