Skip to content

Commit

Permalink
Revert function rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmith4-godaddy committed Nov 6, 2024
1 parent 25df591 commit 4e71b9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/API/Accounts/AccountsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public function removeCollaboratorFromAcct(string $accessToken, int $acctId, int
->delete("accounts/{$acctId}/collaborators/{$collabId}/{$role}/{$appId}");
}

public function createSshPublicKey(
// this is named createSshPublicKey in the upstream mgmt-client codebase
public function addSshKey(
string $accessToken,
int $accountId,
string $key,
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Accounts/AddSshKeyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
}

try {
$this->api->createSshPublicKey($token, $accountId, $key);
$this->api->addSshKey($token, $accountId, $key);
} catch (ClientException $e) {
$output->writeln('<error>Could not upload ssh key.</error>');
$output->writeln(
Expand Down

0 comments on commit 4e71b9a

Please sign in to comment.