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

locate.locate fails always #33810

Closed
chiro79 opened this issue Jun 6, 2016 · 1 comment
Closed

locate.locate fails always #33810

chiro79 opened this issue Jun 6, 2016 · 1 comment
Labels
Bug broken, incorrect, or confusing behavior fixed-pls-verify fix is linked, bug author to confirm fix P3 Priority 3 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around

Comments

@chiro79
Copy link

chiro79 commented Jun 6, 2016

Description of Issue/Question

Using the salt command "locate.locate" always throws the following exception:
suse: The minion function caused an exception: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/salt/minion.py", line 1071, in _thread_return return_data = func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/salt/modules/locate.py", line 112, in locate options += toggles[option] KeyError: '__pub_user'

Setup

Tested with version 2015.8.7, but it seems that it is still happening.

Steps to Reproduce Issue

Execute the following command:
salt '*' locate.locate something
I tried to solve it, and it seems that with this diff it works:

110,113c110,112
<     for option in toggles:
<         if option in kwargs:
<             if bool(kwargs[option]) is True:
<                 options += toggles[option]

---
>     for option in kwargs:
>         if bool(kwargs[option]) is True:
>             options += toggles[option]

Versions Report

Salt Version:
Salt: 2015.8.7

Dependency Versions:
Jinja2: 2.8
M2Crypto: Not Installed
Mako: 1.0.1
PyYAML: 3.11
PyZMQ: 14.7.0
Python: 2.7.9 (default, Dec 13 2014, 18:02:08) [GCC]
RAET: Not Installed
Tornado: 4.3
ZMQ: 4.1.3
cffi: 1.1.0
cherrypy: 3.6.0
dateutil: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
libgit2: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: 1.2.5
pycparser: 2.10
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: 0.3.7
smmap: Not Installed
timelib: Not Installed

System Versions:
dist: SuSE 42.1 x86_64
machine: x86_64
release: 4.1.21-14-default
system: openSUSE 42.1 x86_64

@cachedout
Copy link
Contributor

Thanks for letting us know. I've fixed this issue here: #33827

@cachedout cachedout added Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around fixed-pls-verify fix is linked, bug author to confirm fix P3 Priority 3 Platform Relates to OS, containers, platform-based utilities like FS, system based apps labels Jun 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior fixed-pls-verify fix is linked, bug author to confirm fix P3 Priority 3 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
None yet
Development

No branches or pull requests

2 participants