1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +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:
epriestley 2012-08-16 14:13:10 -07:00
parent 46f4f6cf0a
commit 2a815e0715

View file

@ -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)