Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: crmd: Suppress secondary errors when no metadata is found

  • Loading branch information...
commit 44d3e130fd2069fca6bb689988ed57d5b65f2782 1 parent 65ff64c
@beekhof authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 crmd/lrm.c
View
4 crmd/lrm.c
@@ -519,6 +519,10 @@ get_rsc_restart_list(lrmd_rsc_info_t * rsc, lrmd_event_data_t * op)
key = NULL;
reload->metadata = get_rsc_metadata(rsc->type, rsc->class, provider);
+ if(reload->metadata == NULL) {
+ goto cleanup;
+ }
+
metadata = string2xml(reload->metadata);
if (metadata == NULL) {
crm_err("Metadata for %s::%s:%s is not valid XML",
Please sign in to comment.
Something went wrong with that request. Please try again.