Skip to content

Commit

Permalink
Merge pull request #2762 from abdhaleegit/vscsi_dlpar
Browse files Browse the repository at this point in the history
dlpar_vscsi: get device node for lscfg
  • Loading branch information
abdhaleegit authored Feb 15, 2024
2 parents 885dfc9 + 5cdeb6b commit 6c24b41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion io/disk/dlpar_vscsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
DLPAR operations
"""

import os
from avocado import Test
from avocado.utils import process
from avocado.utils import disk
Expand All @@ -34,7 +35,8 @@ def setUp(self):
Gather necessary test inputs.
'''
device = self.params.get('disk', default=None)
self.disk = disk.get_absolute_disk_path(device)
dev_path = disk.get_absolute_disk_path(device)
self.disk = os.path.basename(os.path.realpath(dev_path))
self.num_of_dlpar = int(self.params.get("num_of_dlpar", default='1'))
self.vios_ip = self.params.get('vios_ip', '*', default=None)
self.vios_user = self.params.get('vios_username', '*', default=None)
Expand Down

0 comments on commit 6c24b41

Please sign in to comment.