Skip to content

Commit

Permalink
Fix: tools: Clean up everywhere if we don't know anything about the r…
Browse files Browse the repository at this point in the history
…esource
  • Loading branch information
beekhof committed Oct 11, 2017
1 parent bb5a731 commit a646692
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/crm_resource_runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,10 @@ cli_resource_delete(crm_ipc_t *crmd_channel, const char *host_uname,
GListPtr lpc = NULL;
GListPtr nodes = g_hash_table_get_values(rsc->known_on);

if(nodes == NULL) {
nodes = node_list_dup(data_set->nodes, FALSE, FALSE);
}

for (lpc = nodes; lpc != NULL; lpc = lpc->next) {
node = (node_t *) lpc->data;

Expand Down

0 comments on commit a646692

Please sign in to comment.