1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-22 22:03:39 +03:00

M #-: suppress augeas require warning message (#4846)

This commit is contained in:
Alejandro Huertas Herrero 2020-06-01 12:57:02 +02:00 committed by GitHub
parent 0423430491
commit fab48b8360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -231,6 +231,9 @@ CommandParser::CmdParser.new(ARGV) do
command :serversync, sync_desc, :server, :options => [DATABASE] do
begin
# Suppress augeas require warning message
$VERBOSE = nil
gem 'augeas', '~> 0.6'
require 'augeas'
rescue Gem::LoadError

View File

@ -105,6 +105,9 @@ module OpenNebula
file_name = 'monitord.conf'
begin
# Suppress augeas require warning message
$VERBOSE = nil
require 'augeas'
aug = Augeas.create(:no_modl_autoload => true,

View File

@ -103,6 +103,9 @@ class OneDB
def read_credentials(ops)
begin
# Suppress augeas require warning message
$VERBOSE = nil
gem 'augeas', '~> 0.6'
require 'augeas'
rescue Gem::LoadError