Skip to content

Update stat module to handle symlinks#3551

Merged
mpdehaan merged 1 commit intoansible:develfrom
sfromm:issue3543
Jul 20, 2013
Merged

Update stat module to handle symlinks#3551
mpdehaan merged 1 commit intoansible:develfrom
sfromm:issue3543

Conversation

@sfromm
Copy link
Contributor

@sfromm sfromm commented Jul 16, 2013

Add follow parameter to stat module that controls whether to follow
symlinks. It defaults to no.
This then calls os.stat or os.lstat based on the value of follow.
Add lnk_source key/value pair if path is a symlink and follow=no.
Drop the statement that sets isdir=False and islnk=True when path is a
symlink that points to a directory.

See issue #3543

Add follow parameter to stat module that controls whether to follow
symlinks.  It defaults to no.
This then calls os.stat or os.lstat based on the value of follow.
Add lnk_source key/value pair if path is a symlink and follow=no.
Drop the statement that sets isdir=False and islnk=True when path is a
symlink that points to a directory.
mpdehaan added a commit that referenced this pull request Jul 20, 2013
Update stat module to handle symlinks
@mpdehaan mpdehaan merged commit efaaaa6 into ansible:devel Jul 20, 2013
@mpdehaan
Copy link
Contributor

merged, thanks!

jimi-c pushed a commit that referenced this pull request Dec 6, 2016
The policycoreutils python API for RHEL6 and RHEL7 are sufficiently
different, requiring some additional definitions and specific conversion
that works on old and new implementations.

It also implements a fix for non-ascii error messages (like when using a
French locale configuration).

This fixes #3551.
robinro pushed a commit to robinro/ansible that referenced this pull request Dec 9, 2016
The policycoreutils python API for RHEL6 and RHEL7 are sufficiently
different, requiring some additional definitions and specific conversion
that works on old and new implementations.

It also implements a fix for non-ascii error messages (like when using a
French locale configuration).

This fixes ansible#3551.
@ansible ansible locked and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants