mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +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
|
include FindFiles
|
||||||
|
|
||||||
def initialize(conf_path)
|
def initialize(conf_path = nil)
|
||||||
@conf_path = conf_path
|
@conf_path = conf_path || inspec.mysql.conf_path
|
||||||
@files_contents = {}
|
@files_contents = {}
|
||||||
@content = nil
|
@content = nil
|
||||||
@params = nil
|
@params = nil
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
class MysqlSession < Inspec.resource(1)
|
class MysqlSession < Inspec.resource(1)
|
||||||
name 'mysql_session'
|
name 'mysql_session'
|
||||||
|
|
||||||
def initialize(user, pass)
|
def initialize(user = nil, pass = nil)
|
||||||
@user = user
|
@user = user
|
||||||
@pass = pass
|
@pass = pass
|
||||||
init_fallback if user.nil? or pass.nil?
|
init_fallback if user.nil? or pass.nil?
|
||||||
|
|
Loading…
Reference in a new issue