salt icon indicating copy to clipboard operation
salt copied to clipboard

group in file.find module unable to be a list

Open gtmanfred opened this issue 10 years ago • 5 comments

Description of Issue/Question

The documentation says that group can be a comma or space separated list, but it gives an error when you give multiple lists.

Steps to Reproduce Issue

[root@salt ~]# salt-call file.find /var group=nginx
local:
    - /var/lib/nginx
    - /var/lib/nginx/tmp
    - /var/log/nginx
[root@salt ~]# salt-call file.find /var group=wheel
local:
[root@salt ~]# salt-call file.find /var group=wheel,nginx
local:
    error: no such group "wheel"
[root@salt ~]# salt-call file.find /var group=nginx,wheel
local:
    error: no such group "nginx"

Versions Report

[root@salt ~]# salt-call --versions-report
Salt Version:
           Salt: 2016.3.3

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: Not Installed
          gitdb: 0.6.4
      gitpython: 1.0.1
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: 0.25.1
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.8
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
         pygit2: Not Installed
         Python: 2.7.5 (default, Sep 15 2016, 22:37:39)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 15.3.0
           RAET: Not Installed
          smmap: 0.9.0
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.1.4

System Versions:
           dist: centos 7.2.1511 Core
        machine: x86_64
        release: 3.10.0-327.36.1.el7.x86_64
         system: Linux
        version: CentOS Linux 7.2.1511 Core

Happens on 2015.8.12 too.

gtmanfred avatar Oct 20 '16 16:10 gtmanfred

@gtmanfred was this merged into develop or do I need to create a new pull request?

haeac avatar Oct 21 '16 22:10 haeac

@haeac it looks like you open a pull request and merged the patch in your own fork, rather than saltstack's...

lorengordon avatar Oct 29 '16 18:10 lorengordon

Would you accept a backport to 2016.3, the version where the bug was reported?

lorengordon avatar Nov 10 '16 22:11 lorengordon

I have tagged the pr with the backport label. so it should be taken care of in a few days.

gtmanfred avatar Nov 10 '16 22:11 gtmanfred

Awesome, thanks!

lorengordon avatar Nov 10 '16 22:11 lorengordon