This patch remove unneeded junk argument from the BmapBdevCopy constructor
invocation and fixes this issue:
Traceback (most recent call last):
File "./bmaptool", line 684, in <module>
sys.exit(main())
File "./bmaptool", line 668, in main
args.func(args, log)
File "./bmaptool", line 434, in copy_command
image_size, logger=log)
TypeError: __init__() got multiple values for keyword argument 'logger'
Change-Id: Ic77418ec81f6c085118807eb4a675034979a8f72
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
if dest_is_blkdev:
dest_str = "block device '%s'" % args.dest
# For block devices, use the specialized class
- writer = BmapCopy.BmapBdevCopy(image_obj, dest_obj, args.dest,
+ writer = BmapCopy.BmapBdevCopy(image_obj, dest_obj,
NamedFile(bmap_obj, bmap_path),
image_size, logger=log)
else: