mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
Merge branch 'stretch_kde_update' of https://github.com/cliffe/SecGen into stretch_kde_update
This commit is contained in:
@@ -302,7 +302,10 @@ end
|
||||
def get_vm_names(scenario)
|
||||
vm_names = []
|
||||
parser = Nori.new
|
||||
scenario_hash = parser.parse(File.read(scenario))['scenario']
|
||||
scenario_hash = parser.parse(File.read(scenario))
|
||||
if scenario_hash.key?('scenario')
|
||||
scenario_hash = scenario_hash['scenario']
|
||||
end
|
||||
if scenario_hash['system'].is_a? Array
|
||||
scenario_hash['system'].each do |system|
|
||||
vm_names << system['system_name']
|
||||
|
||||
Reference in New Issue
Block a user