feat: hand HPE MSA exports from the disk CSV import to the MSA wizard
An MSA disk export pasted or uploaded in Disks > Import failed with "Unknown header: Location". The import now recognises the MSA columns and opens the shelf assignment step of the MSA import instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
7754e823cb
commit
2a6abc396d
4 files changed
+32
-3
No files matched your search
@@ -75,3 +75,10 @@ class ClassifyTest(SimpleTestCase):
|
||||
self.assertEqual(
|
||||
msa_import.classify(self.disk, 1, 24, serial_elsewhere="MSA2 – Front 7")[0], msa_import.ACTION_CONFLICT
|
||||
)
|
||||
|
||||
|
||||
class DetectionTest(SimpleTestCase):
|
||||
def test_recognises_msa_header_only(self):
|
||||
self.assertTrue(msa_import.looks_like_export(EXPORT))
|
||||
self.assertTrue(msa_import.looks_like_export("\ufeffLocation;Serial Number\n1.1;X"))
|
||||
self.assertFalse(msa_import.looks_like_export("device,slot,serial\nsrv-01,0,ABC"))
|
||||
Reference in new issue
Block a user