#2782: apply suggestions
This commit is contained in:
@@ -843,14 +843,6 @@ simulation:
|
||||
dns_server: 192.168.1.10
|
||||
services:
|
||||
- type: FTPServer
|
||||
file_system:
|
||||
- root:
|
||||
- backup_script.sh: # example file in backup server
|
||||
size: 400
|
||||
type: SH
|
||||
- downloads:
|
||||
- "ChromeSetup.exe" # another example file
|
||||
- "New Folder" # example of an empty folder
|
||||
- hostname: security_suite
|
||||
type: server
|
||||
ip_address: 192.168.1.110
|
||||
|
||||
@@ -331,7 +331,7 @@ class PrimaiteGame:
|
||||
raise ValueError(msg)
|
||||
|
||||
# handle node file system
|
||||
if node_cfg.get("file_system") is not None and len(node_cfg.get("file_system")) > 0:
|
||||
if node_cfg.get("file_system"):
|
||||
for folder_idx, folder_obj in enumerate(node_cfg.get("file_system")):
|
||||
# if the folder is not a Dict, create an empty folder
|
||||
if not isinstance(folder_obj, Dict):
|
||||
|
||||
Reference in New Issue
Block a user