Skip to content

Commit

Permalink
Merge pull request redhat-openstack#277 from buzzdeee/concat_order_ve…
Browse files Browse the repository at this point in the history
…rification_fix

Fixup $order parameter verification
  • Loading branch information
Morgan Haskel committed Mar 2, 2015
2 parents a3d8632 + b897904 commit 30fbfe1
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 30fbfe1

Please sign in to comment.