rapid7/metasploit-framework — pull request #2013 by jvazquez-r7 (2013-06-24 16:36:57+00:00)
Title: Fix wrong local variable

Someone reported:

```
---

msf exploit(jboss_deploymentfilerepository) > set RHOST X.X.X.X
RHOST => X.X.X.X
msf exploit(jboss_deploymentfilerepository) > exploit

[*] Started reverse handler on Y.Y.Y.Y:4444
[*] Attempting to automatically select a target...
[-] Exploit failed: NameError undefined local variable or method `os' for #
msf exploit(jboss_deploymentfilerepository) >

---

msf exploit(jboss_bshdeployer) > set RHOST X.X.X.X
RHOST => X.X.X.X
msf exploit(jboss_bshdeployer) > exploit

[*] Started reverse handler on Y.Y.Y.Y:4444
[*] Attempting to automatically select a target...
[-] Exploit failed: NameError undefined local variable or method `os' for #
msf exploit(jboss_bshdeployer) > search jboss

---
```

This patch tries to fix the errors. Updating the pull request with testing results in a while.