diff options
-rw-r--r-- | cli/objects/disks.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/cli/objects/disks.py b/cli/objects/disks.py index d1a9ed7..9de76c4 100644 --- a/cli/objects/disks.py +++ b/cli/objects/disks.py @@ -54,12 +54,6 @@ class OgDisk(): nargs='?', default=1, help='Disk number (defaults to 1)') - parser.add_argument('--format', - nargs='?', - const=True, - type=lambda x: x.split(','), - help='Indicates which partitions to reformat if they are already present. ' - 'Use --part alone to mean all partitions.') parser.add_argument('--part', nargs='+', action='append', @@ -124,18 +118,13 @@ class OgDisk(): 'format': '0'} payload['partition_setup'].append(part) - if parsed_args.format is True or (type(parsed_args.format) == list and part_num in parsed_args.format): - do_format = '1' - else: - do_format = '0' - if fs == 'CACHE': # Assuming flag specifying if there's cache in the setup payload['cache'] = '1' payload['cache_size'] = size part = {'partition': str(p[0]), 'code': code.upper(), 'filesystem': fs.upper(), 'size': size, - 'format': do_format} + 'format': '0'} payload['partition_setup'].append(part) last_partnum = int(parsed_args.part[-1][0][0]) |