

def __update_datasource_property(jboss_config, datasource_name, name, value, ds_attributes, profile=None):
    log.debug('======================== MODULE FUNCTION: jboss7.__update_datasource_property, datasource_name=%s, name=%s, value=%s, profile=%s', datasource_name, name, value, profile)
    operation = '/subsystem=datasources/data-source="{datasource_name}":write-attribute(name="{name}",value={value})'.format(datasource_name=datasource_name, name=name, value=__format_value(name, value, ds_attributes))
    if (profile is not None):
        operation = ('/profile="{profile}"'.format(profile=profile) + operation)
    return __salt__['jboss7_cli.run_operation'](jboss_config, operation, fail_on_error=False)

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