I am using JINJA2 and Python to generate a website that would use JSNAPy - in other words customized GUI.
I got it to take snaps, list the snaps but erroring on taking the output from the diff into a variable.
Unsure if this is possible at all. The diff output looks like a table with pre file on the left and post on the right.
I might be thinking of it in the wrong way. The command I am passing when excuted on the device works 100% from CLI.
As last solution would start thinking of how to make my wesbite act as shell interface to the system - used internally only.
Errors I am getting:
Feb 21 15:09:37 jsnapy gunicorn: [2020-02-21 15:09:37,532] ERROR in app: Exception on /snapcheck [POST]
</snapcheck is the destination www that would produce output>
Feb 21 15:09:37 jsnapy gunicorn: subprocess.CalledProcessError: Command 'jsnapy --diff "jsnapy/snapshots/LOOPBACK/LOOPBACK_22_2020_02_18-11h_24min_41s_show_configuration.xml" "jsnapy/snapshots/LOOPBACK/LOOPBACK_22_2020_02_19-15h_30min_23s_show_configuration.xml" -f jsnapy_config.yml -v' returned non-zero exit status 1.