rapid7/metasploit-framework — pull request #3595 by darkbushido (2014-07-31 20:04:07+00:00)
Title: Bug/msp 10937/adding parent to cores to credential

##Validation steps
- [ ] launch msfconsole
- [ ] enter irb
- [ ] `core = Metasploit::Credential::Core.last`
- [ ] `cred = core.to_credential`
- [ ] `cred.parent == core` this should be true
- [ ] `cred = Metasploit::Framework::Credential.new(public: 'username', private: 'password')`
- [ ] `cred.parent.nil?` should be true
- [ ] `new_cred = cred.to_credential`
- [ ] `new_cred.parent == cred`
since we are returning the same object instead of duplicating it and returning a new one
- [ ] `cred.parent == cred`