%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/grains/ |
Current File : //usr/lib/python2.7/site-packages/salt/grains/fibre_channel.pyo |
� ���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z d d l Z d Z e j e � Z d � Z d � Z d � Z d � Z d S( u Grains for Fibre Channel WWN's. On Windows this runs a PowerShell command that queries WMI to get the Fibre Channel WWN's available. .. versionadded:: 2018.3.0 To enable these grains set ``fibre_channel_grains: True``. .. code-block:: yaml fibre_channel_grains: True i ( t absolute_importt print_functiont unicode_literalsNu fibre_channelc C@ s$ t j d t � t k r t St Sd S( Nu fibre_channel_grains( t __opts__t gett Falset __virtualname__( ( ( s= /usr/lib/python2.7/site-packages/salt/grains/fibre_channel.pyt __virtual__ s c C@ s g } xr t j d � D]a } t j j j | d � �A } | j � } x+ | j � D] } | j | j � d � qP WWd QXq W| S( u; Return Fibre Channel port WWNs from a Linux host. u /sys/class/fc_host/*/port_nameu ri N( t globt saltt utilst filest fopent readt splitlinest appendt rstrip( t rett fc_filet _wwnt contentt line( ( s= /usr/lib/python2.7/site-packages/salt/grains/fibre_channel.pyt _linux_wwns&