def _LookupDiskIndex(self, idx):
    try:
      return int(idx)
    except ValueError:
      pass
    for i, d in enumerate(self.cfg.GetInstanceDisks(self.instance.uuid)):
      if d.name == idx or d.uuid == idx:
        return i
    raise errors.OpPrereqError("Lookup of disk %r failed" % idx)
This test will assert <b> info sindex </b> output for heading, headerline1, headerline2
dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/instance_set_params.py/LUInstanceSetParams._LookupDiskIndex--crossover with--dataset/ETHPy150Open aerospike/aerospike-admin/test/e2e/test_info.py/TestInfo.test_sindex