We need to deepcopy() when using GENERATE
This commit is contained in:
parent
6ad5af1b2b
commit
668d52c2ba
@ -37,6 +37,7 @@ from bitarray import bitarray
|
|||||||
from time import time,sleep
|
from time import time,sleep
|
||||||
import importlib.util
|
import importlib.util
|
||||||
import re
|
import re
|
||||||
|
import copy
|
||||||
|
|
||||||
# Twisted is pretty important, so I keep it separate
|
# Twisted is pretty important, so I keep it separate
|
||||||
from twisted.internet.protocol import Factory, Protocol
|
from twisted.internet.protocol import Factory, Protocol
|
||||||
@ -1895,7 +1896,7 @@ if __name__ == '__main__':
|
|||||||
if CONFIG['SYSTEMS'][system]['MODE'] == 'MASTER' and (CONFIG['SYSTEMS'][system]['GENERATOR'] > 1):
|
if CONFIG['SYSTEMS'][system]['MODE'] == 'MASTER' and (CONFIG['SYSTEMS'][system]['GENERATOR'] > 1):
|
||||||
for count in range(CONFIG['SYSTEMS'][system]['GENERATOR']):
|
for count in range(CONFIG['SYSTEMS'][system]['GENERATOR']):
|
||||||
_systemname = system+'-'+str(count)
|
_systemname = system+'-'+str(count)
|
||||||
generator[_systemname] = CONFIG['SYSTEMS'][system].copy()
|
generator[_systemname] = copy.deepcopy(CONFIG['SYSTEMS'][system])
|
||||||
generator[_systemname]['PORT'] = generator[_systemname]['PORT'] + count
|
generator[_systemname]['PORT'] = generator[_systemname]['PORT'] + count
|
||||||
logger.debug('(GLOBAL) Generator - generated system %s',_systemname)
|
logger.debug('(GLOBAL) Generator - generated system %s',_systemname)
|
||||||
systemdelete.append(system)
|
systemdelete.append(system)
|
||||||
|
Loading…
Reference in New Issue
Block a user