Skip to content

Commit

Permalink
fix accidential conversion of booleans to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
fraenki committed Mar 29, 2021
1 parent 658b4bb commit 37b231b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
* Add support for Nextcloud's High Performance Backend (notify_push) ([#5])

### Fixed
* Do not convert boolean values to strings when passing them to occ

## [v1.5.0] - 2021-02-26

### Added
Expand Down
6 changes: 5 additions & 1 deletion manifests/config_command.pp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
default: {
$cfg_key = $key
$_occ_cmd = "config:${section}:set"
$_occ_args = "${cfg_key} --value=\'${value}\'"
if ($value =~ Boolean) {
$_occ_args = "${cfg_key} --value=${value} --type=boolean"
} else {
$_occ_args = "${cfg_key} --value=\'${value}\'"
}
$unless_cmd = join([
"php occ config:${section}:get",
$verify_key,
Expand Down

0 comments on commit 37b231b

Please sign in to comment.