pbs: autogen key: adapt recent changes in storage module

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-17 09:12:31 +01:00
parent 243568ca26
commit 0cc6c7e01b

View File

@ -194,7 +194,11 @@ my sub run_client_cmd {
sub autogen_encryption_key {
my ($self) = @_;
my $encfile = $self->encryption_key_file_name();
run_command(['proxmox-backup-client', 'key', 'create', '--kdf', 'none', $encfile]);
run_command(
['proxmox-backup-client', 'key', 'create', '--kdf', 'none', $encfile],
errmsg => 'failed to create encryption key'
);
return file_get_contents($encfile);
};
sub get_snapshots {