def ping():
    '''
    Is the chassis responding?

    :return: Returns False if the chassis didn't respond, True otherwise.

    '''
    r = __salt__['dracr.system_info'](host=DETAILS['host'],
                                      admin_username=DETAILS['admin_username'],
                                      admin_password=DETAILS['admin_password'])
    if r.get('retcode', 0) == 1:
        return False
    else:
        return True
    try:
        return r['dict'].get('ret', False)
    except Exception:
        return False
def ping ( ) : r = __salt__ [ 'dracr.system_info' ] ( host = DETAILS [ 'host' ] , admin_username = DETAILS [ 'admin_username' ] , admin_password = DETAILS [ 'admin_password' ] ) if r . get ( 'retcode' , 0 ) == 1 : return False else : return True try : return r [ 'dict' ] . get ( 'ret' , False ) except Exception : return False
Is the chassis responding?

    :return: Returns False if the chassis didn't respond, True otherwise.