def expand_device_list(self, device_list):
"""
Expand strings like "device[1-3]" into lists like ["device1", "device2", device3"].
Also handles groups like "@compute_nodes".
See the range of inputs at: http://clustershell.readthedocs.io/en/latest/tools/nodeset.html
:param device_list: A list of devices.
:raise DevicelListParseError: When the expression is not parsable.
:return:
"""
return list(NodeSet(device_list, resolver=self.datastore_group_resolver))
评论列表
文章目录