mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-22 11:48:17 +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":
|
||||
@@ -14,4 +15,5 @@ class parameterised_accounts::init {
|
||||
data_to_leak => $account['data_to_leak'],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user