Allow arrays in args

Just check that args is a Hash without checking the value types.

Fixes: https://github.com/basecamp/kamal/issues/863
This commit is contained in:
Donal McBreen
2024-06-25 14:11:08 +01:00
parent ff03891d47
commit b63982c3a7
3 changed files with 8 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ class ConfigurationValidationTest < ActiveSupport::TestCase
assert_error "builder/remote: unknown key: foo", builder: { "remote" => { "foo" => "bar" } }
assert_error "builder/local: unknown key: foo", builder: { "local" => { "foo" => "bar" } }
assert_error "builder/remote/arch: should be a string", builder: { "remote" => { "arch" => [] } }
assert_error "builder/args/foo: should be a string", builder: { "args" => { "foo" => [] } }
assert_error "builder/args: should be a hash", builder: { "args" => [ "foo" ] }
assert_error "builder/cache/options: should be a string", builder: { "cache" => { "options" => [] } }
end