Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve $packages data-types consistency #126

Merged

Conversation

smortex
Copy link
Member

@smortex smortex commented Aug 2, 2018

$bacula::client::packages was a String while $bacula::director::packages and $bacula::storage::packages where Array (without type restriction for the items).

It probably makes sense to consistently use an Array[String] for these variables.

End users should be unaffected by this change unless they customized these variables to pass custom package name for $bacula::client::packages (which I believe is uncommon).

This problem was found when checking variable data-types consistency while working on switching from erb to epp.

The pluralized name implies an array of String, however the parameter
was a String.  Change it to Array[String] for consistenty.
These are arrays, but only array of String to make sense.  Restrict the
types checking to such arrays.
@zachfi
Copy link
Contributor

zachfi commented Aug 3, 2018

Looks good.

@zachfi zachfi merged commit 7d0a3d3 into voxpupuli:master Aug 3, 2018
@smortex smortex deleted the packages-variable-type-consistency branch August 3, 2018 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants