suppress exclude recieved warning when its already specified. #101
This commit is contained in:
@ -82,8 +82,9 @@ class ZfsAuto(object):
|
|||||||
self.verbose("NOTE: Source and target are on the same host, excluding target-path from selection.")
|
self.verbose("NOTE: Source and target are on the same host, excluding target-path from selection.")
|
||||||
self.exclude_paths.append(args.target_path)
|
self.exclude_paths.append(args.target_path)
|
||||||
else:
|
else:
|
||||||
self.verbose("NOTE: Source and target are on the same host, excluding received datasets from selection.")
|
if not args.exclude_received:
|
||||||
args.exclude_received = True
|
self.verbose("NOTE: Source and target are on the same host, adding --exclude-received to commandline.")
|
||||||
|
args.exclude_received = True
|
||||||
|
|
||||||
if args.test:
|
if args.test:
|
||||||
self.warning("TEST MODE - SIMULATING WITHOUT MAKING ANY CHANGES")
|
self.warning("TEST MODE - SIMULATING WITHOUT MAKING ANY CHANGES")
|
||||||
|
|||||||
Reference in New Issue
Block a user