Rename PassphraseCredentialType subclasses for consistency
Summary: Ref T5655. Test Plan: `arc unit` + `grep` Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T5655 Differential Revision: https://secure.phabricator.com/D13266
This commit is contained in:
@@ -26,7 +26,7 @@ foreach (new LiskMigrationIterator($table) as $repository) {
|
||||
if ($proto == 'http' || $proto == 'https' || $proto == 'svn') {
|
||||
$username = $repository->getDetail('http-login');
|
||||
$secret = $repository->getDetail('http-pass');
|
||||
$type = PassphraseCredentialTypePassword::CREDENTIAL_TYPE;
|
||||
$type = PassphrasePasswordCredentialType::CREDENTIAL_TYPE;
|
||||
} else {
|
||||
$username = $repository->getDetail('ssh-login');
|
||||
if (!$username) {
|
||||
@@ -42,10 +42,10 @@ foreach (new LiskMigrationIterator($table) as $repository) {
|
||||
$file = $repository->getDetail('ssh-keyfile');
|
||||
if ($file) {
|
||||
$secret = $file;
|
||||
$type = PassphraseCredentialTypeSSHPrivateKeyFile::CREDENTIAL_TYPE;
|
||||
$type = PassphraseSSHPrivateKeyFileCredentialType::CREDENTIAL_TYPE;
|
||||
} else {
|
||||
$secret = $repository->getDetail('ssh-key');
|
||||
$type = PassphraseCredentialTypeSSHPrivateKeyText::CREDENTIAL_TYPE;
|
||||
$type = PassphraseSSHPrivateKeyTextCredentialType::CREDENTIAL_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user