From 0844f717a856dc6bed936fbf94045687cd86c27a Mon Sep 17 00:00:00 2001 From: Antoine Catton Date: Sat, 27 Dec 2014 20:26:29 -0700 Subject: [PATCH] Password is unused in the else branch --- cdist/conf/type/__mysql_database/gencode-remote | 1 - 1 file changed, 1 deletion(-) diff --git a/cdist/conf/type/__mysql_database/gencode-remote b/cdist/conf/type/__mysql_database/gencode-remote index 7cd32242..b1c2e6a1 100755 --- a/cdist/conf/type/__mysql_database/gencode-remote +++ b/cdist/conf/type/__mysql_database/gencode-remote @@ -45,7 +45,6 @@ if [ -f "$__object/parameter/user" ]; then EOF EOFF else - password="" cat <<-EOFF mysql -u root <<-EOF GRANT ALL PRIVILEGES ON $database.* to '$user'@'localhost';