Page MenuHomePhabricator

D11530.id27800.diff
No OneTemporary

D11530.id27800.diff

diff --git a/src/applications/drydock/interface/command/DrydockSSHCommandInterface.php b/src/applications/drydock/interface/command/DrydockSSHCommandInterface.php
--- a/src/applications/drydock/interface/command/DrydockSSHCommandInterface.php
+++ b/src/applications/drydock/interface/command/DrydockSSHCommandInterface.php
@@ -16,6 +16,12 @@
->needSecrets(true)
->executeOne();
+ if ($credential === null) {
+ throw new Exception(pht(
+ 'There is no credential with ID %d.',
+ $this->getConfig('credential')));
+ }
+
if ($credential->getProvidesType() !==
PassphraseCredentialTypeSSHPrivateKey::PROVIDES_TYPE) {
throw new Exception('Only private key credentials are supported.');

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 7, 9:22 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7226061
Default Alt Text
D11530.id27800.diff (741 B)

Event Timeline