Skip to content

ansible_mitogen.target.set_file_owner() raises TypeError #1234

@moreati

Description

@moreati
>>> import ansible_mitogen.target
>>> ansible_mitogen.target.set_file_owner('~/', None, None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/alex/v27/lib/python2.7/site-packages/ansible_mitogen/target.py", line 654, in set_file_owner
    os.chown(path, (uid, gid))
TypeError: chown() takes exactly 3 arguments (2 given)
>>> ansible_mitogen.target.set_file_owner('~/', None, None, 123)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/alex/v27/lib/python2.7/site-packages/ansible_mitogen/target.py", line 651, in set_file_owner
    os.fchown(fd, (uid, gid))
TypeError: fchown() takes exactly 3 arguments (2 given)

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-0.3Issues related to 0.3.X Mitogen releasesbugCode feature that hinders desired execution outcome

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions