Skip to content

Commit

Permalink
force reload configuration content before uploading new configuration…
Browse files Browse the repository at this point in the history
… to server
  • Loading branch information
ftylitak committed Dec 17, 2024
1 parent 4951f7c commit 297687f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions insighioNode/apps/demo_console/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,11 @@ def executeDeviceConfigurationUpload(cfg, network):
configUploadFileContent = utils.readFromFlagFile("/configLog")
if configUploadFileContent:
logging.info("New configuration found, about to upload it.")
from utils import configuration_handler

configuration_handler.notifyServerWithNewConfig()
configUploadFileContent = utils.readFromFlagFile("/configLog") # reload configuration to be sure ov validity

message_sent = network.send_control_message(
cfg,
'[{"n":"config","vs":"' + configUploadFileContent + '"}]',
Expand Down

0 comments on commit 297687f

Please sign in to comment.