Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

salt.fileserver.roots: Fix regression in symlink_list #39409

Merged
merged 1 commit into from Feb 15, 2017

Conversation

terminalmage
Copy link
Contributor

A recent PR of mine (#39337) removed the logic in symlink_list and fell back to the cached file list generated in _file_lists(). However, this code dates back from before the fileserver backends' symlink_list() functions were modified to return a dict mapping links to their destinations.

This fixes the code in _file_lists() so that it returns the correct data. It also fixes the fact that . was showing up in the dir list produced by _file_lists(), and updates the associated integration test to include the cachedir in the mocked opts.

A recent PR of mine removed the logic in symlink_list and fell back to
the cached file list generated in _file_lists(). However, this code
dates back from before the fileserver backends' symlink_list() functions
were modified to return a dict mapping links to their destinations.

This fixes the code in _file_lists() so that it returns the correct
data. It also fixes the fact that '.' was showing up in the dir list
produced by _file_lists(), and updates the associated integration test
to include the cachedir in the mocked opts.
Copy link
Contributor

@rallytime rallytime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good, but it's probably good to have @cachedout review it as well.

@thatch45
Copy link
Member

Looks good to me as well

@rallytime rallytime merged commit 4ff13ac into saltstack:2016.3 Feb 15, 2017
gitebra pushed a commit to gitebra/salt that referenced this pull request Feb 17, 2017
* commit '3fc1e2c9f836a4603b01155fef9d9c7347fb8477': (72 commits)
  grammar in states/top.rst
  add Salt Enterprise photo
  add 2016.11.3 changelog to release notes (saltstack#39451)
  Remove global dunder definistions from tests
  Port f847639 into Nitrogen
  Add release notes for cisco proxy minions added in Carbon
  NAPALM proxy: add alive function for proxy keepalive
  Enhance NAPALM grains
  Improve introduction to explain the purpose of orchestration
  Have mysql state error out on non-existant file
  Fix fileserver.fileclient reference
  Change ``path`` value from a tuple to a list
  Add additional tests to the Windows whitelist
  Add version control to SPM repo creation
  set default user variable to the user cmd runs as
  Fix documentation for detach's default value
  salt.fileserver.roots: Fix regression in symlink_list (saltstack#39409)
  Add sleep to eval_master
  Don't overwrite self.host w/IPv6 brackets
  Salt-SSH deal with raw IPv6 addresses
  ...
@terminalmage terminalmage deleted the fix-symlink-list branch April 25, 2017 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants