use prefix where it exists
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 27 Jun 2020 18:23:41 +0000 (19:23 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 27 Jun 2020 18:23:41 +0000 (19:23 +0100)
src/nmutil/iocontrol.py

index 917e1058e3268731604777ac8505b065e44a917b..f83d315b092bdd41935881a10ffde09d22369f56 100644 (file)
@@ -107,7 +107,7 @@ class RecordObject(Record):
             print (self, self.name, v.name)
             v.name = prefix + v.name
         elif isinstance(v, Record):
-            add_prefix_to_record_signals(self.name + "_", v)
+            add_prefix_to_record_signals(prefix, v)
 
         self.fields[k] = v
         #print ("RecordObject setattr", k, v)