Skip to content

PDB-249 commands config exceptions#782

Merged
senior merged 2 commits intopuppetlabs:masterfrom
kbarber:ticket/master/PDB-249_commands-config-exceptions
Jan 3, 2014
Merged

PDB-249 commands config exceptions#782
senior merged 2 commits intopuppetlabs:masterfrom
kbarber:ticket/master/PDB-249_commands-config-exceptions

Conversation

@kbarber
Copy link
Contributor

@kbarber kbarber commented Jan 3, 2014

This PR fixes PDB-249, whereby the usage of the options store-usage and temp-usage was throwing exceptions in configuration.

More details in the individual commits.

The use of (s/maybe s/Int) for the configuration options store-usage and
temp-usage were throwing exceptions when these configuration options were
used.

So this is really a bug in the convert-schema support, but in our case
we don't need to support the concept of 'nil' or 's/Int' for these items
(which is what s/maybe effectively does) since they are already marked as
optional.

This patch removes the use of s/maybe removing the exception, but does not
fix the original bug.

Signed-off-by: Ken Barber <ken@bob.sh>
… types

Previously for types schema.core.Predicate the function get-construct-fn was
failing as there was no support. This patch extends the PredicateConstructFn
protocol to support these types by simply passing through the value without
coercion or change.

Signed-off-by: Ken Barber <ken@bob.sh>
@puppetlabs-jenkins
Copy link
Contributor

💚 Test passed.
Refer to this link for build results: https://jenkins.puppetlabs.com/job/PuppetDB%20Acceptance%20-%20Pull%20Requests/118/

senior added a commit that referenced this pull request Jan 3, 2014
…onfig-exceptions

PDB-249 commands config exceptions
@senior senior merged commit c3b1a5e into puppetlabs:master Jan 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants