Skip to content

Commit

Permalink
Copy disks when only zone is different
Browse files Browse the repository at this point in the history
  • Loading branch information
aarontp committed Jun 11, 2020
1 parent 63a6a8e commit d6d076c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion turbinia/turbiniactl.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,8 @@ def main():
log.error('Turbinia project must be set by --project or in config')
sys.exit(1)

if args.project and args.project != config.TURBINIA_PROJECT:
if ((args.project and args.project != config.TURBINIA_PROJECT) or
(args.zone and args.zone != config.TURBINIA_ZONE)):
new_disk = libcloudforensics.create_disk_copy(
args.project, config.TURBINIA_PROJECT, None, config.TURBINIA_ZONE,
args.disk_name)
Expand Down

0 comments on commit d6d076c

Please sign in to comment.