Current File : //lib/python2.7/site-packages/tuned/profiles/functions/function_virt_check.pyc |
�
��\c @ sU d d l Z d d l Z d d l m Z d d l m Z d e j f d � � YZ d S( i����Ni ( t base( t commandst
virt_checkc B s e Z d Z d � Z d � Z RS( s�
Checks whether running inside virtual machine (VM) or on bare metal.
If running inside VM expands to argument 1, otherwise expands to
argument 2 (even on error).
c C s t t | � j d d � d S( NR i ( t superR t __init__( t self( ( sP /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_virt_check.pyR s c C se t t | � j | � s d S| j j d g � \ } } | d k r] t | � d k r] | d S| d S( Ns virt-whati i ( R R t executet Nonet _cmdt len( R t argst rett out( ( sP /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_virt_check.pyR s ( t __name__t
__module__t __doc__R R ( ( ( sP /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_virt_check.pyR s ( t ost
tuned.logst tunedt R t tuned.utils.commandsR t FunctionR ( ( ( sP /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_virt_check.pyt <module> s