From 6a93d67bb8b8a45ad25ea31ad070e58161204a5f Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Mon, 24 Feb 2014 20:39:08 +0000 Subject: [PATCH] Make this work in SLES as well As RedHat. --- spec/acceptance/mysql_server_root_password_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/acceptance/mysql_server_root_password_spec.rb b/spec/acceptance/mysql_server_root_password_spec.rb index 07eefff..c60d2aa 100644 --- a/spec/acceptance/mysql_server_root_password_spec.rb +++ b/spec/acceptance/mysql_server_root_password_spec.rb @@ -17,7 +17,7 @@ describe 'mysql::server::root_password class' do it 'deletes all databases' do case fact('osfamily') - when 'RedHat' + when 'RedHat', 'SuSE' shell('rm -rf `grep datadir /etc/my.cnf | cut -d" " -f 3`/*') when 'Debian' shell('rm -rf `grep datadir /etc/mysql/my.cnf | cut -d" " -f 3`/*')