+
     GiS  c                   sX    ^ RI t ^ RIt^RIHt ^ RIHt  ! R R]P                  4      tR# )i    N)base)commandsc                   sB   a a ] tR t^t oRtV 3R ltV 3R ltRtVtV ;t	# )
virt_checkz
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                s2   < \         \        V `  R ^^4       R# )r   N)superr   __init__)self	__class__s   &Q/usr/lib/python3.14/site-packages/tuned/profiles/functions/function_virt_check.pyr   Zvirt_check.__init__   s    
D"<A6    c                s   < \         \        V `  V4      '       g   R # V P                  P                  R.4      w  r#V^ 8X  d   \	        V4      ^ 8  d
   V^ ,          # V^,          # )Nz	virt-what)r   r   executeZ_cmdZlen)r   ZargsZretZoutr   s   &&  r   r	   Zvirt_check.execute   sS    	z4	(	.	.
yy  +/*3AX#c(Q,
q'>	a.r    )
Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r   r	   Z__static_attributes__Z__classdictcell__Z__classcell__)r   Z__classdict__s   @@r   r   r      s     
7 r   r   )	ZosZ
tuned.logsZtunedZ r    Ztuned.utils.commandsr   ZFunctionr   r
   r   r   <module>r      s!    	   ) r   