mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove only the file extension on cached node files instead of replacing every '.p' substring.
This commit is contained in:
parent
87667e2de6
commit
f0566c4b8f
1 changed files with 1 additions and 1 deletions
|
@ -2780,7 +2780,7 @@ def missing_node_cache(prov_dir, node_list, provider, opts):
|
|||
'''
|
||||
cached_nodes = []
|
||||
for node in os.listdir(prov_dir):
|
||||
cached_nodes.append(node.replace('.p', ''))
|
||||
cached_nodes.append(os.path.splitext(node)[0])
|
||||
|
||||
log.debug(sorted(cached_nodes))
|
||||
log.debug(sorted(node_list))
|
||||
|
|
Loading…
Add table
Reference in a new issue