AmesCornish / buttersink

Buttersink is like rsync for btrfs snapshots
GNU General Public License v3.0
195 stars 18 forks source link

Fix: vars() argument must have __dict__ attribute. #51

Closed Srendi closed 6 years ago

Srendi commented 6 years ago

On Centos 7.4 and Python 3.6 the default code spits two errors when trying buttersink btrfs:///mnt/local/volume btrfs:///mnt/iscsi/target

It complanins of empty vars list error in btrfs receive and Error: vars() argument must have dict attribute. So changing these two lines in send.py from vars(cmdHeader) to cmdHeader._asdict() fixes the error.

AmesCornish commented 6 years ago

I tested this with python 2.7.14, and it works fine. I've added you as a collaborator, and you're welcome to merge. Thanks for the help!