[zfs] Fix typo and add missing continue
This commit is contained in:
parent
90452147a3
commit
91762e3df4
@ -171,6 +171,7 @@ ZfsJob::exec()
|
|||||||
if ( r.getExitCode() != 0 )
|
if ( r.getExitCode() != 0 )
|
||||||
{
|
{
|
||||||
cWarning() << "Failed to create dataset" << datasetMap[ "dsName" ].toString();
|
cWarning() << "Failed to create dataset" << datasetMap[ "dsName" ].toString();
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the dataset to the list for global storage
|
// Add the dataset to the list for global storage
|
||||||
@ -184,7 +185,7 @@ ZfsJob::exec()
|
|||||||
gs->insert( "zfs", datasetList );
|
gs->insert( "zfs", datasetList );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Export the zpool so it can be reimported at the correct local later
|
// Export the zpool so it can be reimported at the correct location later
|
||||||
auto r = system->runCommand( { "zpool", "export", m_poolName }, std::chrono::seconds( 10 ) );
|
auto r = system->runCommand( { "zpool", "export", m_poolName }, std::chrono::seconds( 10 ) );
|
||||||
if ( r.getExitCode() != 0 )
|
if ( r.getExitCode() != 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user