a small, and unfortunate error

This commit is contained in:
James Loosli 2016-09-28 08:49:43 -07:00 committed by rallytime
parent 48d2b01e6c
commit c5b8e442f9

View file

@ -50,7 +50,7 @@ def present(name, definition):
ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''}
index_exists = __salt__['elasticsearch.index_exists'](name=name)
index_exists = __salt__['elasticsearch.index_exists'](index=name)
if not index_exists:
if __opts__['test']:
ret['comment'] = 'Index {0} will be created'.format(name)