Skip to content

Commit

Permalink
fix syntax test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonHoenscheid committed Sep 28, 2020
1 parent 9c58a9d commit b60982f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
assert_private()

if ($external_repo and $php_version in $external_repo_supported_php_versions) {
case $facts['os']['name'] {
'RedHat', 'CentOS': { contain 'php::repo::redhat' }
'Debian', 'Ubuntu': { contain 'php::repo::debian' }
default: { contain 'php::repo::fallback' }
}
case $facts['os']['name'] {
'RedHat', 'CentOS': { contain 'php::repo::redhat' }
'Debian', 'Ubuntu': { contain 'php::repo::debian' }
default: { contain 'php::repo::fallback' }
}
}
}
2 changes: 1 addition & 1 deletion manifests/repo/fallback.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# @summary the fallback class, throws an error, if called
class php::repo::fallback () {
assert_private()

$msg_no_repo = "No repo available for ${facts['os']['family']}/${facts['os']['name']}"
fail($msg_no_repo)
}

0 comments on commit b60982f

Please sign in to comment.