Skip to content

Instantly share code, notes, and snippets.

@kula
Created September 30, 2013 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kula/6771634 to your computer and use it in GitHub Desktop.
Save kula/6771634 to your computer and use it in GitHub Desktop.
2013-09-30 19:09:47,903 [salt.minion ][WARNING ] The minion function caused an exception: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/salt/minion.py", line 633, in _thread_return
ret['return'] = func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg.py", line 839, in get_repo
repos = list_repos(basedir)
File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg.py", line 818, in list_repos
for repofile in os.listdir(basedir):
NameError: global name 'os' is not defined
Salt: 0.16.3
Python: 2.6.8 (unknown, Nov 7 2012, 14:47:34)
Jinja2: unknown
M2Crypto: 0.21.1
msgpack-python: 0.1.12
msgpack-pure: Not Installed
pycrypto: 2.3
PyYAML: 3.08
PyZMQ: 2.1.9
ZMQ: 2.1.9
@kula
Copy link
Author

kula commented Sep 30, 2013

# python2.6 -i /usr/lib/python2.6/site-packages/salt/modules/yumpkg.py
>>> list_repos()
{'epel': {'name': 'Extra Packages for Enterprise Linux 5 - $basearch', 'failovermethod': 'priority', 'gpgkey': 'file:///
...

@kula
Copy link
Author

kula commented Sep 30, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment