This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pep8names.py | |
# | |
# Convert all python files in a directory to use pep8 naming conventions. | |
# | |
# The conversion is done in-place. | |
# | |
# Warning: this will also convert names from external packages/modules, | |
# including the standard library, so you will want to check the | |
# results. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
import lsm | |
_hba_plugin_uris = ("hpsa://", "megaraid://") | |
HBAVolumeInfo = namedtuple('HBAVolumeInfo', ['system', 'nodes', 'raid_type', 'raid_stripe_size']) | |
""" lighweight data structure containing HBA RAID info: | |
system (str): descriptive name of HBA unit | |
nodes (list of str): list of device node paths for the volume |