فهرست منبع

partition_table: Fix missing argument not present for all parsers

Roland Dobai 5 سال پیش
والد
کامیت
075d3a57ac
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      components/partition_table/parttool.py

+ 1 - 1
components/partition_table/parttool.py

@@ -294,7 +294,7 @@ def main():
     elif args.partition_type:
     elif args.partition_type:
         if not args.partition_subtype:
         if not args.partition_subtype:
             raise RuntimeError("--partition-subtype should be defined when --partition-type is defined")
             raise RuntimeError("--partition-subtype should be defined when --partition-type is defined")
-        partition_id = PartitionType(args.partition_type, args.partition_subtype, args.part_list)
+        partition_id = PartitionType(args.partition_type, args.partition_subtype, getattr(args, 'part_list', None))
     elif args.partition_boot_default:
     elif args.partition_boot_default:
         partition_id = PARTITION_BOOT_DEFAULT
         partition_id = PARTITION_BOOT_DEFAULT
     else:
     else: