From 396fcc7418e741cdfd9351fbd72b025270d2dd1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Sun, 23 Dec 2018 16:40:02 +0100 Subject: [PATCH] Fix some minor rubocop (lint) offenses --- unipoly-mlmmj-ldap-sync | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unipoly-mlmmj-ldap-sync b/unipoly-mlmmj-ldap-sync index 9969838..c0c0971 100755 --- a/unipoly-mlmmj-ldap-sync +++ b/unipoly-mlmmj-ldap-sync @@ -27,7 +27,8 @@ def connect_ldap } ) - ldap_addr = "#{@configuration['ldap']['host']}:#{@configuration['ldap']['port']}" + ldap_addr = @configuration['ldap']['host'] + ':' + + @configuration['ldap']['port'] begin if conn.bind conn @@ -142,7 +143,7 @@ end def main # Parse configuration, bind to LDAP server @configuration = read_configuration(@configuration_file) - conn = connect_ldap() + conn = connect_ldap domain = @configuration['domain'] basetree = @configuration['ldap']['lists']['basetree']