From 2a1c82e57a8e5342c0c079a0c972f9f284ed51a2 Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Wed, 6 Nov 2024 11:48:02 -0500 Subject: [PATCH] account for this error and return nil --- nginx_stage/lib/nginx_stage.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx_stage/lib/nginx_stage.rb b/nginx_stage/lib/nginx_stage.rb index c7f5387c25..f5cb71ea59 100644 --- a/nginx_stage/lib/nginx_stage.rb +++ b/nginx_stage/lib/nginx_stage.rb @@ -188,7 +188,8 @@ def self.active_users rescue ArgumentError => e log = Syslog::Logger.new 'ood_nginx_stage' log.error "cannot create user #{v} because of error '#{e.message}'" - end + nil + end.compact end # Get a hash of all the staged app configs