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:
parent
0423430491
commit
fab48b8360
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user