You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
instead of at least one of the above (preferably for the fix, the one with the trailing slash -- which I presume is being trimmed off before evaluation/comparison) returning the following:
demo/a/b/c/targetfile2
demo/a/b/c/targetfile1
Setup
See above.
on-prem machine
VM (Virtualbox, KVM, etc. please specify)
VM running on a cloud service, please be explicit and add details
container (Kubernetes, Docker, containerd, etc. please specify)
or a combination, please be explicit
jails if it is FreeBSD
classic packaging
onedir packaging
used bootstrap to install
Steps to Reproduce the behavior
See above. This behavior occurs both when invoked in a template (e.g. {% filelist = salt['cp.list_master'](prefix='<...>') %}) and when invoked directly (e.g. salt 'minion*' cp.list_master prefix='<...>').
Expected behavior
See above; a prefix especially with a trailing slash should match only children of that path, not children and siblings as if the slash was not specified.
Screenshots
N/A; see above.
Versions Report
salt --versions-report
master:
Salt Version:
Salt: 3007.1Python Version:
Python: 3.10.14 (main, Apr 3 2024, 21:30:09) [GCC 11.2.0]Dependency Versions:
cffi: 1.16.0cherrypy: unknowndateutil: 2.8.2docker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.4libgit2: 1.8.1looseversion: 1.3.0M2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.7msgpack-pure: Not Installedmysql-python: Not Installedpackaging: 23.1pycparser: 2.21pycrypto: Not Installedpycryptodome: 3.19.1pygit2: 1.15.0python-gnupg: 0.5.2PyYAML: 6.0.1PyZMQ: 25.1.2relenv: 0.16.0smmap: Not Installedtimelib: 0.3.0Tornado: 6.3.3ZMQ: 4.3.4Salt Package Information:
Package Type: onedirSystem Versions:
dist: almalinux 9.5 Teal Servallocale: utf-8machine: x86_64release: 5.14.0-503.26.1.el9_5.x86_64system: Linuxversion: AlmaLinux 9.5 Teal Serval
minion:
Salt Version:
Salt: 3007.1Python Version:
Python: 3.10.14 (main, Apr 3 2024, 21:30:09) [GCC 11.2.0]Dependency Versions:
cffi: 1.16.0cherrypy: 18.8.0dateutil: 2.8.2docker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.4libgit2: Not Installedlooseversion: 1.3.0M2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.7msgpack-pure: Not Installedmysql-python: Not Installedpackaging: 23.1pycparser: 2.21pycrypto: Not Installedpycryptodome: 3.19.1pygit2: Not Installedpython-gnupg: 0.5.2PyYAML: 6.0.1PyZMQ: 25.1.2relenv: 0.16.0smmap: Not Installedtimelib: 0.3.0Tornado: 6.3.3ZMQ: 4.3.4Salt Package Information:
Package Type: onedirSystem Versions:
dist: almalinux 9.5 Teal Servallocale: utf-8machine: x86_64release: 5.14.0-503.21.1.el9_5.x86_64system: Linuxversion: AlmaLinux 9.5 Teal Serval
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Description
Given a SaltFS tree that looks like this (assuming e.g.
/demo/...
):Calling
cp.list_master
withprefix=demo/a/b/c
OR withprefix=demo/a/b/c/
always results in the following:instead of at least one of the above (preferably for the fix, the one with the trailing slash -- which I presume is being trimmed off before evaluation/comparison) returning the following:
Setup
See above.
Steps to Reproduce the behavior
See above. This behavior occurs both when invoked in a template (e.g.
{% filelist = salt['cp.list_master'](prefix='<...>') %}
) and when invoked directly (e.g.salt 'minion*' cp.list_master prefix='<...>'
).Expected behavior
See above; a prefix especially with a trailing slash should match only children of that path, not children and siblings as if the slash was not specified.
Screenshots
N/A; see above.
Versions Report
salt --versions-report
master:
minion:
Additional context
N/A
The text was updated successfully, but these errors were encountered: