this is how TestMapper deals with subfields
Thierry Parmentelat [Tue, 20 May 2014 11:05:20 +0000 (13:05 +0200)]
system/Substrate.py

index 0f849c2..b776042 100644 (file)
@@ -1073,12 +1073,12 @@ class Substrate:
                                    'vservername':vservername,
                                    'vserverip':vplc_ip,
 #                                   'settings': {
-                                   'PLC_DB_HOST':vplc_hostname,
-                                   'PLC_API_HOST':vplc_hostname,
-                                   'PLC_BOOT_HOST':vplc_hostname,
-                                   'PLC_WWW_HOST':vplc_hostname,
-                                   'PLC_NET_DNS1' : self.network_settings() [ 'interface_fields:dns1' ],
-                                   'PLC_NET_DNS2' : self.network_settings() [ 'interface_fields:dns2' ],
+                                   'settings:PLC_DB_HOST':vplc_hostname,
+                                   'settings:PLC_API_HOST':vplc_hostname,
+                                   'settings:PLC_BOOT_HOST':vplc_hostname,
+                                   'settings:PLC_WWW_HOST':vplc_hostname,
+                                   'settings:PLC_NET_DNS1' : self.network_settings() [ 'interface_fields:dns1' ],
+                                   'settings:PLC_NET_DNS2' : self.network_settings() [ 'interface_fields:dns2' ],
 #                                      }
                                    } ) ]
                   }