File tree Expand file tree Collapse file tree 3 files changed +6
-17
lines changed Expand file tree Collapse file tree 3 files changed +6
-17
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 281281 }
282282 )
283283 }
284+ $_password = (($password =~ String and $password == ' ' ) and $ignore_password_if_empty ) ? {
285+ true => undef ,
286+ default => $password ,
287+ }
284288 $_purge_sshkeys = ($purge_sshkeys and $sshkey_custom_path != undef ) ? {
285289 true => [String($sshkey_custom_path )],
286290 default => $purge_sshkeys ,
301305 iterations => $iterations ,
302306 managehome => $managehome ,
303307 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,
308309 password_max_age => $password_max_age ,
309310 purge_ssh_keys => $_purge_sshkeys,
310311 salt => $salt ,
Original file line number Diff line number Diff line change 386386 apply_manifest ( pp_user_with_sensitive_password , catch_failures : true )
387387
388388 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'
390390 end
391391 end
392392end
You can’t perform that action at this time.
0 commit comments