From 6fc7305cc3629475020aa039b91f5c78bfe1592f Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Tue, 1 Dec 2015 12:38:14 +0200 Subject: [PATCH] Return dhparams bits as number. --- ssl/dhparams | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/dhparams b/ssl/dhparams index 78e857b..468670a 100755 --- a/ssl/dhparams +++ b/ssl/dhparams @@ -22,4 +22,4 @@ fi bits="$(openssl dhparam -in $path -text -noout \ | sed -n 's/Diffie-Hellman-Parameters: (\([0-9]*\) bit)/\1/p')" -echo "{ \"changed\": False, \"bits\": \"$bits\" }" +echo "{ \"changed\": False, \"bits\": $bits }" -- GitLab