Check for correct resource name.

This commit is contained in:
Adam Gandelman
2013-01-24 15:27:27 -08:00
parent 04d42b35cd
commit acfcc8b800
2 changed files with 2 additions and 2 deletions

View File

@@ -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)