diff --git a/commands/command_utils.py b/commands/command_utils.py index 338978dd64..4f6f99eb09 100644 --- a/commands/command_utils.py +++ b/commands/command_utils.py @@ -26,7 +26,7 @@ def check_version(version): """ if not re.match(VERSION_REGEX, version): raise CommandError('Unexpected format of target version: {}'.format(version)) - return version.split('.')[0] + return version.split('.') def get_major_version(version): diff --git a/repos/system_upgrade/common/actors/storagescanner/tests/files/mdstat b/repos/system_upgrade/common/actors/storagescanner/tests/files/mdstat deleted file mode 100644 index 09842070d3..0000000000 --- a/repos/system_upgrade/common/actors/storagescanner/tests/files/mdstat +++ /dev/null @@ -1,15 +0,0 @@ -Personalities : [raid1] [raid6] [raid5] [raid4] -md1 : active raid1 sdb2[1] sda2[0] - 136448 blocks [2/2] [UU] - -md0 : active raid1 sdb1[1] sda1[0] - 16787776 blocks [2/2] [UU] - -md127 : active raid5 sdh1[6] sdg1[4] sdf1[3] sde1[2] sdd1[1] sdc1[0] - 1464725760 blocks level 5, 64k chunk, algorithm 2 [6/5] [UUUUU_] - [==>..................] recovery = 12.6% (37043392/292945152) finish=127.5min speed=33440K/sec - -md_d0 : inactive sdd1[0](S) sdf1[3](S) sde1[2](S) sdb1[1](S) - 3907039744 blocks - -unused devices: