This is a bug in the snap where it was using '-s' instead of '-n' for string emptiness, which is obviously wrong. It worked by luck on non-LXD. Fixed in:
I pushed this to master and release/0.36 which means that the edge and beta snaps will have this once the builds complete (ie, not before revision 226 of the snap). Due to a separate issue, you'll need to do an install of the snap. Eg:
This is a bug in the snap where it was using '-s' instead of '-n' for string emptiness, which is obviously wrong. It worked by luck on non-LXD. Fixed in:
https:/ /git.launchpad. net/ufw/ commit/ ?id=7947dc0f4ce 8441dfaf6b79f0a 436e7a6d93d85f
I pushed this to master and release/0.36 which means that the edge and beta snaps will have this once the builds complete (ie, not before revision 226 of the snap). Due to a separate issue, you'll need to do an install of the snap. Eg:
root@c1:~# snap remove ufw
root@c1:~# snap install ufw --beta
I plan to publish this fix to stable next week.