From d684a77fd887bf6a62a166f6ccc34501d614de3b Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 20 Jan 2017 11:49:11 +0300 Subject: mariadb: typo With `either`, submodule attrs aren't checked, but the idea is good anyway, so let it be here for a while. See https://github.com/zalora/nixsap/issues/10 --- modules/apps/mariadb/roles.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/apps/mariadb') diff --git a/modules/apps/mariadb/roles.nix b/modules/apps/mariadb/roles.nix index 2971242..0e10cf9 100644 --- a/modules/apps/mariadb/roles.nix +++ b/modules/apps/mariadb/roles.nix @@ -164,7 +164,7 @@ let roleType = let objects = mkOption { - type = either str (listOf str); + type = listOf str; default = []; example = [ "%bleep.%.created\_at" @@ -177,7 +177,7 @@ let ]; }; basicRole = submodule { - options.nixsap = { + options = { "ALL" = objects; "ALTER" = objects; "CREATE" = objects; -- cgit v1.2.3