Skip to content

Commit

Permalink
When testing the order parameter on sanity, make sure that
Browse files Browse the repository at this point in the history
pattern matching is only exercised on strings. Integers
don't like that.
  • Loading branch information
buzzdeee committed Mar 1, 2015
1 parent eb04c55 commit b897904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/fragment.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}
if !(is_string($order) or is_integer($order)) {
fail('$order is not a string or integer.')
} elsif $order =~ /[:\n\/]/ {
} elsif (is_string($order) and $order =~ /[:\n\/]/) {
fail("Order cannot contain '/', ':', or '\n'.")
}
if $mode {
Expand Down

0 comments on commit b897904

Please sign in to comment.