The encryption secret is setup only for LUKS and thus requires the new
approach. Use qemuDomainSecretInfoNew for initializing it.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
if (hasEnc) {
if (!(srcPriv->encinfo =
- qemuDomainSecretInfoNewPlain(priv, encalias,
- VIR_SECRET_USAGE_TYPE_VOLUME, NULL,
- &src->encryption->secrets[0]->seclookupdef,
- true)))
+ qemuDomainSecretInfoNew(priv, encalias,
+ VIR_SECRET_USAGE_TYPE_VOLUME, NULL,
+ &src->encryption->secrets[0]->seclookupdef,
+ true)))
return -1;
}