New advanced mode editor widget for NetJSON editing

32 views
Skip to first unread message

Federico Capoano

unread,
Mar 9, 2017, 1:20:49 PM3/9/17
to OpenWISP, GASTON CHE
I just released django-netjsonconfig 0.5.5, which includes a new JSON editor widget for editing NetJSON in the advanced mode.

This new editor brings a few important improvements to the advanced mode:
  • syntax highlighting
  • JSON validation error reporting
  • JSON schema validation error reporting
Here's a screenshot:



Many thanks to Gaston Che which sent a patch to add this feature.

If you want to help us, you could upgrade your instances, test this feature and report any problem you may encounter.

Federico

mord reneth

unread,
Mar 10, 2017, 7:34:32 AM3/10/17
to OpenWISP
Just updated......very nice! so far, no problems.....

Only 1 issue during updating......i couldn't update using the command:

ansible-playbook -i hosts playbook.yml 

Gave the error:

fatal: [192.168.X.X]: FAILED! => {"failed": true, "msg": "The conditional check 'ansible_user != 'root'' failed. The error was: error while evaluating conditional (ansible_user != 'root'): 'ansible_user' is undefined\n\nThe error appears to have been in '/usr/local/etc/ansible/roles/openwisp.openwisp2/tasks/apt.yml': line 20, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# fixes issue described in https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user\n- name: Install acl if acting as non-root user\n  ^ here\n"}

I had to use:

ansible-playbook -i hosts playbook.yml -u root -k --ask-sudo-pass


Maybe i went wrong somewhere during inital install?


Federico Capoano

unread,
Mar 10, 2017, 8:25:20 AM3/10/17
to mord reneth, OpenWISP
You found a small bug in the ansible-openwisp2 role, I fixed it now:

The issue was caused by a change introduced in ansible 2.1, described here:

Thanks for reporting!
Federico

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mord reneth

unread,
Mar 10, 2017, 8:58:10 AM3/10/17
to OpenWISP
OK, glad you found it....
Reply all
Reply to author
Forward
0 new messages