mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-03 15:20:42 +00:00
pbs: autogen key: adapt recent changes in storage module
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
243568ca26
commit
0cc6c7e01b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user