We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9bdef9 + df52e08 commit 87d76c4Copy full SHA for 87d76c4
libraries/mysql_version.rb
@@ -27,6 +27,6 @@ def initialize(user, pass)
27
end
28
29
def mysql_version
30
- inspec.command("mysql -sN -e 'SHOW VARIABLES WHERE variable_name = \"version\"'").stdout.strip.split("\t")[1].to_s
+ inspec.command("mysql -sN -e 'SHOW VARIABLES WHERE variable_name = \"version\"'").stdout.strip.split('\t')[1].split('-')[0].to_s
31
32
0 commit comments