chore(test,userspace/falco): fixed tests after libs bump.

Moreover, try to create grpc socket folder path only if grpc is actually enabled.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro
2022-10-05 15:47:55 +02:00
committed by poiana
parent ec7ddbbaf8
commit e68151eb07
2 changed files with 3 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ application::run_result application::create_requested_paths()
}
}
if (!m_state->config->m_grpc_bind_address.empty())
if (m_state->config->m_grpc_enabled && !m_state->config->m_grpc_bind_address.empty())
{
if(falco::utils::network::is_unix_scheme(m_state->config->m_grpc_bind_address))
{
@@ -108,4 +108,4 @@ int application::create_dir(const std::string &path)
}
}
return 0;
}
}