The value of err needs to be "fetched" first.

This commit is contained in:
Pedro Algarvio 2013-07-18 22:23:28 +01:00
parent 4e7894d70f
commit 9f134a9308

View File

@ -241,6 +241,7 @@ def absent(name,
ret['changes'][name] = 'Absent'
return ret
else:
err = _get_mysql_error()
if err is not None:
ret['comment'] = err
ret['result'] = False