saltstack/salt — Issue #616: incomplete merge of salt/modules/yumpkg.py
Author: jcollie
Created: 2012-01-31 13:40:22+00:00
State: open

Changes were made to salt/modules/yumpkg.py in ba3dc0cb55b9bf819fe6ad0ff275294b1fe39404 but it doesn't look like they were completely merged into the develop branch, as I now get this traceback:

Traceback (most recent call last):
File "/usr/bin/salt-call", line 21, in
main()
File "/usr/bin/salt-call", line 17, in main
client.run()
File "/usr/lib/python2.7/site-packages/salt/cli/__init__.py", line 672, in run
caller.run()
File "/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 107, in run
ret = self.call()
File "/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 42, in call
*self.opts['arg']
File "/usr/lib/python2.7/site-packages/salt/modules/state.py", line 79, in highstate
return st_.call_highstate()
File "/usr/lib/python2.7/site-packages/salt/state.py", line 1000, in call_highstate
return self.state.call_high(high)
File "/usr/lib/python2.7/site-packages/salt/state.py", line 695, in call_high
ret = self.format_verbosity(self.call_chunks(chunks))
File "/usr/lib/python2.7/site-packages/salt/state.py", line 531, in call_chunks
running = self.call_chunk(low, running, chunks)
File "/usr/lib/python2.7/site-packages/salt/state.py", line 626, in call_chunk
running = self.call_chunk(chunk, running, chunks)
File "/usr/lib/python2.7/site-packages/salt/state.py", line 672, in call_chunk
running[tag] = self.call(low)
File "/usr/lib/python2.7/site-packages/salt/state.py", line 515, in call
ret = self.states[cdata['full']](*cdata['args'])
File "/usr/lib/python2.7/site-packages/salt/states/pkg.py", line 48, in installed
skip_verify=skip_verify)
File "/usr/lib/python2.7/site-packages/salt/modules/yumpkg.py", line 207, in install
for opt in opts:
NameError: global name 'opts' is not defined

I'll have a patch in a few minutes that should fix the issue.