[Pacemaker] [PATCH] Low: tools: provide UUID-like string to digest generation
Vladislav Bogdanov
bubble at hoster-ok.com
Mon Jun 10 11:46:30 UTC 2013
This should make "warning: decode_transition_key: Bad UUID (crm_resource.c) in sscanf result (4) for 31980:0:0:crm_resource.c"
go away.
---
tools/crm_resource.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/tools/crm_resource.c b/tools/crm_resource.c
index 2aef08b..0fbae4d 100644
--- a/tools/crm_resource.c
+++ b/tools/crm_resource.c
@@ -42,6 +42,8 @@
#include <crm/pengine/rules.h>
#include <crm/pengine/status.h>
+# define FAKE_TE_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+
bool scope_master = FALSE;
gboolean do_force = FALSE;
gboolean BE_QUIET = FALSE;
@@ -669,7 +671,7 @@ send_lrm_rsc_op(crm_ipc_t * crmd_channel, const char *op,
}
}
- key = generate_transition_key(0, getpid(), 0, __FILE__);
+ key = generate_transition_key(0, getpid(), 0, FAKE_TE_ID);
msg_data = create_xml_node(NULL, XML_GRAPH_TAG_RSC_OP);
crm_xml_add(msg_data, XML_ATTR_TRANSITION_KEY, key);
--
1.7.1
More information about the Pacemaker
mailing list