Mini Shell
3
C��e � @ s� d dl Z d dlZd dlZd dlmZ d dlmZ d dlm Z d dl
mZ d dlm
Z
d dlmZ ee�Zdd � Zd
d� Zdd
� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd%dd�Zdd� Zdd � Zd!d"� Zd#d$� ZdS )&� N)�LooseVersion)�get_module_logger)�DEVICE_TREE)�STORAGE)�
DeviceData)�PayloadSetupErrorc C s t jt�}|j| �pdS )z�Get the device matching the provided device specification.
:param str dev_spec: a string describing a block device
:return: a device name or None
N)r � get_proxyr Z
ResolveDevice)Zdev_spec�device_tree� r
�/usr/lib64/python3.6/utils.py�resolve_device"