Fix some minor rubocop (lint) offenses
This commit is contained in:
parent
beeca5ce46
commit
396fcc7418
1 changed files with 3 additions and 2 deletions
|
@ -27,7 +27,8 @@ def connect_ldap
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
ldap_addr = "#{@configuration['ldap']['host']}:#{@configuration['ldap']['port']}"
|
ldap_addr = @configuration['ldap']['host'] + ':' +
|
||||||
|
@configuration['ldap']['port']
|
||||||
begin
|
begin
|
||||||
if conn.bind
|
if conn.bind
|
||||||
conn
|
conn
|
||||||
|
@ -142,7 +143,7 @@ end
|
||||||
def main
|
def main
|
||||||
# Parse configuration, bind to LDAP server
|
# Parse configuration, bind to LDAP server
|
||||||
@configuration = read_configuration(@configuration_file)
|
@configuration = read_configuration(@configuration_file)
|
||||||
conn = connect_ldap()
|
conn = connect_ldap
|
||||||
|
|
||||||
domain = @configuration['domain']
|
domain = @configuration['domain']
|
||||||
basetree = @configuration['ldap']['lists']['basetree']
|
basetree = @configuration['ldap']['lists']['basetree']
|
||||||
|
|
Loading…
Reference in a new issue