Principle sends invalid config to hacluster

When requesting hacluster manage an init service the principle
sends options to hacluster but is currently erroneously sending
the word 'param' as well. eg

The pinciple is setting:
''res_designate_haproxy'': ''  params op monitor interval="5s"''

When it should be:
''res_designate_haproxy'': ''op monitor interval="5s"''

Including the word 'params' evenutally causes hacluster to fail with:
ERROR: syntax in primitive: params op monitor interval=5s

Change-Id: Id35bb22692914dc3f94465d8ae7d62971a238d4e
This commit is contained in:
Liam Young 2016-07-26 18:07:50 +00:00
parent 7fc2ce2861
commit 13ad020e36
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ class InitService(ResourceDescriptor):
self.service_name.replace('-', '_'),
self.init_service_name.replace('-', '_'))
res_type = 'lsb:{}'.format(self.init_service_name)
crm.primitive(res_key, res_type, params='op monitor interval="5s"')
crm.primitive(res_key, res_type, op='monitor interval="5s"')
crm.init_services(self.init_service_name)
if self.clone:
clone_key = 'cl_{}'.format(res_key)