diff --git a/manifests/archive.pp b/manifests/archive.pp index 2242b39..8b38a36 100644 --- a/manifests/archive.pp +++ b/manifests/archive.pp @@ -87,7 +87,7 @@ Variant[String, Integer] $keep_monthly = 6, Optional[Variant[String[1], Integer]] $keep_yearly = undef, ) { - if ( ! $stdin_cmd and $create_includes != []) or ( ! $stdin_cmd and $create_excludes != []) { + if ( $stdin_cmd and $create_includes != []) or ( $stdin_cmd and $create_excludes != []) { fail('borgbackup::archive $stdin_cmd cannot be used together with $create_includes or $create_exclude') }