mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
parameterised accounts removed default input (it was previously unused in any scenario + needed to include the module without generating an empty unused account)
This commit is contained in:
@@ -2,7 +2,8 @@ class parameterised_accounts::init {
|
||||
$secgen_parameters = secgen_functions::get_parameters($::base64_inputs_file)
|
||||
|
||||
$accounts = $secgen_parameters['accounts']
|
||||
$accounts.each |$raw_account| {
|
||||
if $accounts {
|
||||
$accounts.each |$raw_account| {
|
||||
$account = parsejson($raw_account)
|
||||
$username = $account['username']
|
||||
parameterised_accounts::account { "parameterised_$username":
|
||||
@@ -13,4 +14,5 @@ class parameterised_accounts::init {
|
||||
leaked_filenames => $account['leaked_filenames']
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user