mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 02:32:42 +01:00
Fix a PhutilOpaqueEnvelope issue with bin/storage dump
Summary: We need to open the envelope here. Test Plan: Ran `bin/storage dump` without errors. Reviewers: vrana, btrahan Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D3315
This commit is contained in:
parent
46f4f6cf0a
commit
2a815e0715
1 changed files with 9 additions and 3 deletions
|
@ -45,9 +45,15 @@ final class PhabricatorStorageManagementDumpWorkflow
|
|||
|
||||
list($host, $port) = $this->getBareHostAndPort($api->getHost());
|
||||
|
||||
$flag_password = $api->getPassword()
|
||||
? csprintf('-p %s', $api->getPassword())
|
||||
: '';
|
||||
$flag_password = '';
|
||||
|
||||
$password = $api->getPassword();
|
||||
if ($password) {
|
||||
$password = $password->openEnvelope();
|
||||
if (strlen($password)) {
|
||||
$flag_password = csprintf('-p %s', $password);
|
||||
}
|
||||
}
|
||||
|
||||
$flag_port = $port
|
||||
? csprintf('--port %d', $port)
|
||||
|
|
Loading…
Reference in a new issue