suppress exclude recieved warning when its already specified. #101

This commit is contained in:
Edwin Eefting
2022-01-27 16:12:17 +01:00
parent 609ad19dd9
commit a8b43c286f

View File

@ -82,7 +82,8 @@ class ZfsAuto(object):
self.verbose("NOTE: Source and target are on the same host, excluding target-path from selection.")
self.exclude_paths.append(args.target_path)
else:
self.verbose("NOTE: Source and target are on the same host, excluding received datasets from selection.")
if not args.exclude_received:
self.verbose("NOTE: Source and target are on the same host, adding --exclude-received to commandline.")
args.exclude_received = True
if args.test: