Commit 32e01f44 authored by Cedric Caffy's avatar Cedric Caffy
Browse files

Drive is set to down if the path to drive does not exist

parent ffaf4ecc
......@@ -315,7 +315,7 @@ castor::tape::tapeserver::daemon::Session::EndOfSessionAction
// file to migrate.
// 1) Get hold of the drive error logs are done inside the findDrive function
std::unique_ptr<castor::tape::tapeserver::drive::DriveInterface> drive(findDrive(m_driveConfig,lc,archiveMount));
if (!drive.get()) return MARK_DRIVE_AS_UP;
if (!drive.get()) return MARK_DRIVE_AS_DOWN;
// Once we got hold of the drive, we can run the session
{
//dereferencing configLine is safe, because if configLine were not valid,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment