Blob Blame History Raw
From e487cd68049b1da2a9646bba2f0fb26cae4022d1 Mon Sep 17 00:00:00 2001
From: Ken Gaillot <kgaillot@redhat.com>
Date: Tue, 14 Jan 2020 16:01:16 -0600
Subject: [PATCH 07/10] Low: tools: crm_resource resource checks should show
 shutdown locks

---
 tools/crm_resource_runtime.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/crm_resource_runtime.c b/tools/crm_resource_runtime.c
index 9e70db8..9b93928 100644
--- a/tools/crm_resource_runtime.c
+++ b/tools/crm_resource_runtime.c
@@ -907,6 +907,11 @@ cli_resource_check(cib_t * cib_conn, resource_t *rsc)
     }
     free(managed);
 
+    if (rsc->lock_node) {
+        printf("%s  * '%s' is locked to node %s due to shutdown\n",
+               (printed? "" : "\n"), parent->id, rsc->lock_node->details->uname);
+    }
+
     if (printed) {
         printf("\n");
     }
-- 
1.8.3.1