27 lines
725 B
Diff
27 lines
725 B
Diff
|
commit 61835593b43a5e0d29287f24fa5500f950b2bf6b
|
||
|
Author: Gao,Yan <ygao@suse.com>
|
||
|
Date: Mon Oct 5 17:44:13 2015 +0200
|
||
|
|
||
|
Fix: fencing: Return a provider for the internal fencing agent "#watchdog" instead of logging an error
|
||
|
|
||
|
diff --git a/lib/fencing/st_client.c b/lib/fencing/st_client.c
|
||
|
index b8f3967..b9fef3e 100644
|
||
|
--- a/lib/fencing/st_client.c
|
||
|
+++ b/lib/fencing/st_client.c
|
||
|
@@ -1499,8 +1499,13 @@ get_stonith_provider(const char *agent, const char *provider)
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
- crm_err("No such device: %s", agent);
|
||
|
- return NULL;
|
||
|
+ if (safe_str_eq(provider, "internal")) {
|
||
|
+ return provider;
|
||
|
+
|
||
|
+ } else {
|
||
|
+ crm_err("No such device: %s", agent);
|
||
|
+ return NULL;
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
static gint
|