Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty public key #30

Merged
merged 2 commits into from
Dec 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
this package and not the cluster API. See the changelog of the [cluster API](https://cluster-api.cyberfusion.nl/redoc#section/Changelog)
for detailed information.

## [1.85.1]

### Fixed

- Allow the public key to be null in `getPublicKey` method.

## [1.85.0]

### Removed
Expand Down
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Client implements ClientContract
{
private const CONNECT_TIMEOUT = 60;
private const TIMEOUT = 180;
private const VERSION = '1.85.0';
private const VERSION = '1.85.1';
private const USER_AGENT = 'cyberfusion-cluster-api-client/' . self::VERSION;

private Configuration $configuration;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/SshKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function setName(string $name): self
return $this;
}

public function getPublicKey(): string
public function getPublicKey(): ?string
{
return $this->publicKey;
}
Expand Down