#2782: apply suggestions

This commit is contained in:
Czar Echavez
2024-09-05 10:18:35 +01:00
parent 1374a23e14
commit 2391c48569
2 changed files with 1 additions and 9 deletions

View File

@@ -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

View File

@@ -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):