diff --git a/src/PVE/Storage.pm b/src/PVE/Storage.pm index 24ca19f..e2e6742 100755 --- a/src/PVE/Storage.pm +++ b/src/PVE/Storage.pm @@ -1675,10 +1675,7 @@ sub storage_default_format { my $scfg = storage_config($cfg, $storeid); my $plugin = PVE::Storage::Plugin->lookup($scfg->{type}); - my $formats = $plugin->get_formats($scfg, $storeid); - - return - wantarray ? ($formats->{default}, [sort keys $formats->{valid}->%*]) : $formats->{default}; + return $plugin->get_formats($scfg, $storeid)->{default}; } sub resolve_format_hint {