Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14357195
D11530.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
741 B
Referenced Files
None
Subscribers
None
D11530.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11530: Check to make sure credential is not null in SSH command interface
Attached
Detach File
Event Timeline
Log In to Comment