diff --git a/providers/agent_java.rb b/providers/agent_java.rb index 0a56ecbe..3cf7a2cf 100644 --- a/providers/agent_java.rb +++ b/providers/agent_java.rb @@ -88,13 +88,12 @@ def generate_agent_config def allow_app_group_write_to_log_file_path path = new_resource.logfile_path - until path.nil? || path.empty? || path == ::File::SEPARATOR + unless path.nil? || path.empty? directory path do group new_resource.app_group mode '0775' action :create end - path = ::File.dirname(path) end end