Repository navigation
Conversation
twangboy
left a comment
There was a problem hiding this comment.
Looks like you have commits from another PR in here. The changelog and tests aren't related to your file.managed fixes. Please remove those and add a changelog and tests for these changes.
f6a385c to
218dfaf
Compare
|
Fixed. I've cleaned up the branch — removed the unrelated ZMQ commits and added:
The branch now only contains the ile.py change plus changelog and tests. |
twangboy
left a comment
There was a problem hiding this comment.
This looks good. Would you mind rebasing this on the 3006.x branch?
| if (path, senv) in mfiles or (path, senv) in mdirs: | ||
| ret = (single, source_hash) | ||
| break | ||
| if single.startswith("salt://"): |
There was a problem hiding this comment.
I recommend using a utility/utils function for this (creating one if one does not already exist) like is_salt_uri (whatever name) rather than hardcoding this logic assumption directly into this function.
Instead of eagerly calling cp.list_master for every source list, defer the fetch until a salt:// URL is actually encountered. Fixes saltstack#69804.
218dfaf to
0cf434a
Compare
|
Please address @bdrx312 comment. This is probably the right thing to do. |
Every state using file.managed with a list source paid the cost of a full fileserver scan upfront, even when the first source was HTTP or local. Defer the cp.list_master / cp.list_master_dirs calls until a salt:// URL is actually hit.