

def update_simple_binding(jboss_config, binding_name, value, profile=None):
    '\n    Update the simple jndi binding in the running jboss instance\n\n    jboss_config\n        Configuration dictionary with properties specified above.\n    binding_name\n        Binding name to be updated\n    value\n        New binding value\n    profile\n        The profile name (JBoss domain mode only)\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt \'*\' jboss7.update_simple_binding \'{"cli_path": "integration.modules.sysmod.SysModuleTest.test_valid_docs", "controller": "10.11.12.13:9999", "cli_user": "jbossadm", "cli_password": "jbossadm"}\' my_binding_name my_binding_value\n       '
    log.debug('======================== MODULE FUNCTION: jboss7.update_simple_binding, binding_name=%s, value=%s, profile=%s', binding_name, value, profile)
    operation = '/subsystem=naming/binding="{binding_name}":write-attribute(name=value, value="{value}")'.format(binding_name=binding_name, value=__escape_binding_value(value))
    if (profile is not None):
        operation = ('/profile="{profile}"'.format(profile=profile) + operation)
    return __salt__['jboss7_cli.run_operation'](jboss_config, operation)

dataset/ETHPy150Open saltstack/salt/salt/modules/jboss7.py update_simple_binding/original