Page MenuHomePhabricator

D11530.diff
No OneTemporary

D11530.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
Sat, Dec 21, 3:15 AM (18 h, 5 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6912620
Default Alt Text
D11530.diff (741 B)

Event Timeline