now obeying --quiet, and added 'INFO: ' prefix to skip message

This commit is contained in:
Attie Grande 2018-01-06 10:43:30 +00:00
parent 22c137627a
commit b02b9a582b
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ sub syncdataset {
if ($debug) { print "DEBUG: syncing source $sourcefs to target $targetfs.\n"; }
if (getzfsvalue($sourcehost,$sourcefs,$sourceisroot,'syncoid:no-sync') eq 'true') {
print "Skipping dataset (syncoid:nosync=true): $sourcefs...\n";
if (!$quiet) { print "INFO: Skipping dataset (syncoid:nosync=true): $sourcefs...\n"; }
return 0;
}