Example #1
0
 def update_stored_mconfig(self, updated_value: str) -> GatewayConfigs:
     parsed = json.loads(updated_value)
     serialization_utils.write_to_file_atomically(
         self.MCONFIG_PATH,
         json.dumps(parsed, indent=4, sort_keys=True),
     )
     magma_configuration_events.updated_stored_mconfig()
Example #2
0
 def update_stored_mconfig(self, updated_value: str) -> GatewayConfigs:
     serialization_utils.write_to_file_atomically(
         self.MCONFIG_PATH,
         updated_value,
     )
     magma_configuration_events.updated_stored_mconfig()