mirror of https://github.com/nucypher/nucypher.git
consistent name for config worker_data
parent
b91c3b8b20
commit
c6bbed1e46
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue