Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
pacemaker.10000
pacemaker-tools-correct-OCF_RESOURCE_INSTANCE-c...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-tools-correct-OCF_RESOURCE_INSTANCE-crm_resource-force-execute-2.patch of Package pacemaker.10000
commit 8022d211227e03410b82005c93b7650797ac6196 Author: Kazunori INOUE <inouekazu@intellilink.co.jp> Date: Tue Nov 7 10:36:33 2017 +0900 Low: tools: set the correct OCF_RESOURCE_INSTANCE env when crm_resource --force-* executes RA (2) diff --git a/tools/crm_resource_runtime.c b/tools/crm_resource_runtime.c index 271c99a6c..3052dab59 100644 --- a/tools/crm_resource_runtime.c +++ b/tools/crm_resource_runtime.c @@ -1457,7 +1457,6 @@ cli_resource_execute(const char *rsc_id, const char *rsc_action, GHashTable *ove const char *rprov = NULL; const char *rclass = NULL; const char *action = NULL; - const char *value = NULL; GHashTable *params = NULL; resource_t *rsc = pe_find_resource(data_set->resources, rsc_id); @@ -1521,8 +1520,7 @@ cli_resource_execute(const char *rsc_id, const char *rsc_action, GHashTable *ove /* add crm_feature_set env needed by some resource agents */ g_hash_table_insert(params, strdup(XML_ATTR_CRM_VERSION), strdup(CRM_FEATURE_SET)); - value = g_hash_table_lookup(rsc->meta, XML_RSC_ATTR_UNIQUE); - rid = crm_is_true(value) ? rsc->id : rsc_id; + rid = pe_rsc_is_anon_clone(rsc->parent) ? rsc_id : rsc->id; op = resources_action_create(rid, rclass, rprov, rtype, action, 0, timeout_ms, params, 0);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor