From aeb9b15ea0ffba57d1bf1e48b12299fcd5562ec7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20Czern=C3=BD?= <pczerny@opennebula.io>
Date: Tue, 31 Jan 2023 13:33:46 +0100
Subject: [PATCH] B #5913: Check if CLI *.yaml exists (#2469)

(cherry picked from commit f0c01ca2380ef523094453d50d2f512557eaa3f6)
---
 src/cli/cli_helper.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cli/cli_helper.rb b/src/cli/cli_helper.rb
index 06b958d3b0..f7fedb8e42 100644
--- a/src/cli/cli_helper.rb
+++ b/src/cli/cli_helper.rb
@@ -809,7 +809,7 @@ module CLIHelper
         # @param options [Hash] Object with CLI user options
         def update_columns(options)
             begin
-                if @conf
+                if @conf && File.exists?(@conf)
                     config = YAML.load_file(@conf)
                 else
                     config = {}