b056e09 storage: Don't allow encryption secretPath to be NULL

Authored and Committed by John Ferlan 5 years ago
    storage: Don't allow encryption secretPath to be NULL
    
    Allowing a NULL @secretPath for virStorageBackendCreateQemuImgCmdFromVol
    would result in a generated command line with a dangling "file=" output.
    So let's make sure the @secretPath exists before processing.
    
    This means we should pass a dummy path from the storage test.
    
    Signed-off-by: John Ferlan <jferlan@redhat.com>
    ACKed-by: Michal Privoznik <mprivozn@redhat.com>
    
        
file modified
+5 -0