bugfix: mysql conf and session handling

This commit is contained in:
Dominik Richter 2015-10-26 16:58:42 +01:00
parent 5485111907
commit e76b83a24e
2 changed files with 3 additions and 3 deletions

View file

@ -31,8 +31,8 @@ class MysqlConf < Inspec.resource(1)
include FindFiles
def initialize(conf_path)
@conf_path = conf_path
def initialize(conf_path = nil)
@conf_path = conf_path || inspec.mysql.conf_path
@files_contents = {}
@content = nil
@params = nil

View file

@ -7,7 +7,7 @@
class MysqlSession < Inspec.resource(1)
name 'mysql_session'
def initialize(user, pass)
def initialize(user = nil, pass = nil)
@user = user
@pass = pass
init_fallback if user.nil? or pass.nil?