Problem with zfs module on SmartOS?

Over the past month or so, the following task has consistently failed for me, because the specified dataset already exists:

  • name: Create zfs datasets
    zfs:
    name: zones/images
    state: present
    become: true

The failure looks like this: (reformatted to make it a bit easier to read…)

“changed”: false,

“failed”: true,

“module_stderr”: “”,

“module_stdout”: "Traceback (most recent call last):\r\n

File "/tmp/ansible_iWcvPS/ansible_module_zfs.py", line 245, in \r\n main()\r\n

File "/tmp/ansible_iWcvPS/ansible_module_zfs.py", line 227, in main\r\n zfs = Zfs(module, name, properties)\r\n

File "/tmp/ansible_iWcvPS/ansible_module_zfs.py", line 90, in init\r\n self.enhanced_sharing = self.check_enhanced_sharing()\r\n

File "/tmp/ansible_iWcvPS/ansible_module_zfs.py", line 99, in check_enhanced_sharing\r\n if int(version) >= 34:\r\nValueError: invalid literal for int() with base 10: ‘-’\r\n",

“msg”: “MODULE FAILURE”,

“parsed”: false

}

Is there a fix or workaround available?
For now I am just setting ignore_errors: true

There seems to be an issue filed for this exact traceback: https://github.com/ansible/ansible-modules-extras/issues/2415