Fixed a problem saving the generated ASA screenshot for upload.

master
Pacman Ghost 4 years ago
parent 00345369ad
commit b6afc5ade3
  1. 1
      vasl_templates/webapp/scenarios.py

@ -497,6 +497,7 @@ def prepare_asa_upload(): #pylint: disable=too-many-locals
# save a copy of the screenshot image
fname = app.config.get( "PREPARE_ASA_UPLOAD_SCREENSHOT" )
if fname:
if screenshot_data:
logger.debug( "Saving a copy of the generated screenshot: %s", fname )
with open( fname, "wb" ) as fp:
fp.write( screenshot_data )

Loading…
Cancel
Save