Skip to content

Commit d840593

Browse files
authored
Merge pull request #231 from rtib/GH#230
Fix expression that looks like boolish logic
2 parents 9230d0b + 5e7f847 commit d840593

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/puppet/provider/x509_cert/openssl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def create
9898
options += ['-passin', 'env:CERTIFICATE_PASSIN']
9999
env['CERTIFICATE_PASSIN'] = password
100100
end
101-
options += ['-extensions', 'v3_req'] if resource[:req_ext] != :false
101+
options += ['-extensions', 'v3_req'] if resource[:req_ext]
102102

103103
# openssl(options) doesn't work because it's impossible to pass an env
104104
# https://github.com/puppetlabs/puppet/issues/9493

spec/unit/puppet/provider/x509_cert/openssl_spec.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
'-days', 3650,
4141
'-key', '/tmp/foo.key',
4242
'-out', '/tmp/foo.crt',
43-
'-extensions', 'v3_req',
4443
],
4544
{
4645
combine: true,
@@ -65,7 +64,6 @@
6564
'-key', '/tmp/foo.key',
6665
'-out', '/tmp/foo.crt',
6766
'-passin', 'env:CERTIFICATE_PASSIN',
68-
'-extensions', 'v3_req',
6967
],
7068
{
7169
combine: true,
@@ -95,7 +93,6 @@
9593
'-CAcreateserial',
9694
'-CA', '/tmp/foo-ca.crt',
9795
'-CAkey', '/tmp/foo-ca.key',
98-
'-extensions', 'v3_req',
9996
],
10097
{
10198
combine: true,
@@ -126,7 +123,6 @@
126123
'-CA', '/tmp/foo-ca.crt',
127124
'-CAkey', '/tmp/foo-ca.key',
128125
'-passin', 'env:CERTIFICATE_PASSIN',
129-
'-extensions', 'v3_req',
130126
],
131127
{
132128
combine: true,

0 commit comments

Comments
 (0)