Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1 from mgagliardo/repository_bug
Browse files Browse the repository at this point in the history
repository and wait_for_completion variables not working
  • Loading branch information
cristifalcas authored Oct 18, 2016
2 parents 168a78a + 69eca8a commit 848df05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Default: false
String. Path to configuration file. You must ensure that the directory path exists.
Default: '/root/.curator/curator.yml'

#####`action_file`
#####`actions_file`
String. Path to actions file. You must ensure that the directory path exists.
Default: '/root/.curator/actions.yml'

Expand Down
4 changes: 2 additions & 2 deletions manifests/action.pp
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@
fail('$key can be set only for action = allocation')
}

if $repository and !member(['delete_snapshots', 'snapshot',], $repository) {
if $repository and !member(['delete_snapshots', 'snapshot',], $action) {
fail('$repository can be set only for action = delete_snapshots or snapshot')
}

if ($retry_count or $retry_interval) and $action != 'delete_snapshots' {
fail('$retry_count can be set only for action = delete_snapshots')
}

if $wait_for_completion and !member(['allocation', 'replicas', 'restore', 'snapshot'], $wait_for_completion) {
if $wait_for_completion and !member(['allocation', 'replicas', 'restore', 'snapshot'], $action) {
fail('$wait_for_completion can be set only for action = allocation or replicas or restore or snapshot')
}

Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# String. Path to configuration file. You must ensure that the directory path exists.
# Default: '/root/.curator/curator.yml'
#
# [*action_file*]
# [*actions_file*]
# String. Path to actions file. You must ensure that the directory path exists.
# Default: '/root/.curator/actions.yml'
#
Expand Down

0 comments on commit 848df05

Please sign in to comment.