mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
bugfix: mysql conf and session handling
This commit is contained in:
parent
5485111907
commit
e76b83a24e
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue