def _is_kvm_hyper():
    '''
    Returns a bool whether or not this node is a KVM hypervisor
    '''
    try:
        with salt.utils.files.fopen('/proc/modules') as fp_:
            if 'kvm_' not in salt.utils.stringutils.to_unicode(fp_.read()):
                return False
    except IOError:
        # No /proc/modules? Are we on Windows? Or Solaris?
        return False
    return 'libvirtd' in __salt__['cmd.run'](__grains__['ps'])
def _is_kvm_hyper ( ) : try : with salt . utils . files . fopen ( '/proc/modules' ) as fp_ : if 'kvm_' not in salt . utils . stringutils . to_unicode ( fp_ . read ( ) ) : return False except IOError : return False return 'libvirtd' in __salt__ [ 'cmd.run' ] ( __grains__ [ 'ps' ] )
Returns a bool whether or not this node is a KVM hypervisor