File tree 3 files changed +6
-17
lines changed
3 files changed +6
-17
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 281
281
}
282
282
)
283
283
}
284
+ $_password = (($password =~ String and $password == ' ' ) and $ignore_password_if_empty ) ? {
285
+ true => undef ,
286
+ default => $password ,
287
+ }
284
288
$_purge_sshkeys = ($purge_sshkeys and $sshkey_custom_path != undef ) ? {
285
289
true => [String($sshkey_custom_path )],
286
290
default => $purge_sshkeys ,
301
305
iterations => $iterations ,
302
306
managehome => $managehome ,
303
307
membership => $membership ,
304
- password => (($password =~ String and $password == ' ' ) and $ignore_password_if_empty ) ? {
305
- true => undef ,
306
- default => Deferred(' user_password' , [$password ]),
307
- },
308
+ password => $_password,
308
309
password_max_age => $password_max_age ,
309
310
purge_ssh_keys => $_purge_sshkeys,
310
311
salt => $salt ,
Original file line number Diff line number Diff line change 386
386
apply_manifest ( pp_user_with_sensitive_password , catch_failures : true )
387
387
388
388
expect ( user ( 'sensitive_user' ) ) . to exist
389
- expect ( user ( 'sensitive_user' ) . encrypted_password ) . not_to be_empty
389
+ expect ( user ( 'sensitive_user' ) ) . to contain_password 'bar'
390
390
end
391
391
end
392
392
end
You can’t perform that action at this time.
0 commit comments