consistent name for config worker_data

pull/2080/head
damon 2020-08-21 04:04:44 -07:00
parent b91c3b8b20
commit c6bbed1e46
2 changed files with 4 additions and 4 deletions

View File

@ -120,7 +120,7 @@ class CharacterConfiguration(BaseConfiguration):
registry_filepath: str = None,
# Deployed Workers
workers: dict = None):
worker_data: dict = None):
self.log = Logger(self.__class__.__name__)
UNINITIALIZED_CONFIGURATION.bool_value(False)
@ -169,7 +169,7 @@ class CharacterConfiguration(BaseConfiguration):
self.config_root = UNINITIALIZED_CONFIGURATION
# Deployed Workers
self.worker_data = workers
self.worker_data = worker_data
#
# Federated vs. Blockchain arguments consistency

View File

@ -325,9 +325,9 @@ class BaseCloudNodeConfigurator:
def update_stakeholder_config(self):
data = {}
data = json.loads(open(self.config['stakeholder_config_file'], 'r').read())
existing_worker_data = data.get('workers', {})
existing_worker_data = data.get('worker_data', {})
existing_worker_data.update(self.config['instances'])
data['workers'] = existing_worker_data
data['worker_data'] = existing_worker_data
with open(self.config['stakeholder_config_file'], 'w') as outfile:
json.dump(data, outfile, indent=4)