From 91762e3df4f44b4bca47b9a8ae280a96109d9e0c Mon Sep 17 00:00:00 2001 From: dalto Date: Tue, 9 Nov 2021 14:54:46 -0600 Subject: [PATCH] [zfs] Fix typo and add missing continue --- src/modules/zfs/ZfsJob.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/zfs/ZfsJob.cpp b/src/modules/zfs/ZfsJob.cpp index b04dfd473..8790b1fff 100644 --- a/src/modules/zfs/ZfsJob.cpp +++ b/src/modules/zfs/ZfsJob.cpp @@ -171,6 +171,7 @@ ZfsJob::exec() if ( r.getExitCode() != 0 ) { cWarning() << "Failed to create dataset" << datasetMap[ "dsName" ].toString(); + continue; } // Add the dataset to the list for global storage @@ -184,7 +185,7 @@ ZfsJob::exec() 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 ) ); if ( r.getExitCode() != 0 ) {