

def reload_(jboss_config, host=None):
    '\n    Reload running jboss instance\n\n    jboss_config\n        Configuration dictionary with properties specified above.\n    host\n        The name of the host. JBoss domain mode only - and required if running in domain mode.\n        The host name is the "name" attribute of the "host" element in host.xml\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt \'*\' jboss7.reload \'{"cli_path": "integration.modules.sysmod.SysModuleTest.test_valid_docs", "controller": "10.11.12.13:9999", "cli_user": "jbossadm", "cli_password": "jbossadm"}\'\n\n       '
    log.debug('======================== MODULE FUNCTION: jboss7.reload')
    if (host is None):
        operation = ':reload'
    else:
        operation = '/host="{host}"/:reload'.format(host=jboss_config)
    reload_result = __salt__['jboss7_cli.run_operation'](jboss_config, operation, fail_on_error=False)
    if (reload_result['success'] or ((not reload_result['success']) and (('Operation failed: Channel closed' in reload_result['stdout']) or ('Communication error: java.util.concurrent.ExecutionException: Operation failed' in reload_result['stdout'])))):
        return reload_result
    else:
        raise Exception("Cannot handle error, return code={retcode}, stdout='{stdout}', stderr='{stderr}' ".format(**reload_result))

dataset/ETHPy150Open saltstack/salt/salt/modules/jboss7.py reload_/VarMisuse@49/301 `host`->`jboss_config`