make private_type validation conditional
there are times when this won't be filled in but the credential is still validbug/bundler_fix
parent
b7cfc927c4
commit
b52c13228c
|
@ -48,7 +48,8 @@ module Metasploit
|
|||
# These values should be #demodularized from subclasses of
|
||||
# `Metasploit::Credential::Private`
|
||||
validates :private_type,
|
||||
inclusion: { in: [ :password, :ntlm_hash, :ssh_key ] }
|
||||
inclusion: { in: [ :password, :ntlm_hash, :ssh_key ] },
|
||||
if: "private_type.present?"
|
||||
|
||||
# If we have no private we MUST have a public
|
||||
validates :public,
|
||||
|
|
Loading…
Reference in New Issue