From acfcc8b80093676a6694ecefa91a7c09ea14e7e6 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Thu, 24 Jan 2013 15:27:27 -0800 Subject: [PATCH] Check for correct resource name. --- hooks/hooks.py | 2 +- revision | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/hooks.py b/hooks/hooks.py index 711144c..b682a31 100755 --- a/hooks/hooks.py +++ b/hooks/hooks.py @@ -339,7 +339,7 @@ def configure_stonith(): 'Failed to determine STONITH primitive for node'\ ' %s' % node) - rsc_name = rsc.split(' ')[2] + rsc_name = rsc.split(' ')[1] if not pcmk.is_resource_present(rsc_name): utils.juju_log('INFO', 'Creating new STONITH primitive %s.' %\ rsc_name) diff --git a/revision b/revision index e1617e8..8c61d23 100644 --- a/revision +++ b/revision @@ -1 +1 @@ -57 +58