linstor: fix template copy on non hyperconverged setups (#8114)

Making a diskful resource was meant as an optimization,
but cannot work on non hyperconverged setups,
as the storage nodes (diskful) are not part of the cloudstack cluster.
This commit is contained in:
Peinthor Rene 2023-10-19 07:16:20 +02:00 committed by GitHub
parent 540c7b802f
commit 67cb9b9e40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ public class LinstorStorageAdaptor implements StorageAdaptor {
null,
null);
makeResourceAvailable(api, rscName, true);
makeResourceAvailable(api, rscName, false);
if (!resources.isEmpty() && !resources.get(0).getVolumes().isEmpty()) {
final String devPath = resources.get(0).getVolumes().get(0).getDevicePath();