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

B #6587: Switch to opennebula-augeas gem 6.6 (#3088)

This commit is contained in:
Jan Orel 2024-05-31 13:25:04 +02:00 committed by GitHub
parent 7deb758f4b
commit cedbba6e99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 3 additions and 15 deletions

View File

@ -62,7 +62,7 @@ case "${TARGET}" in
apt-get -y install \
ruby-dev make gcc libsqlite3-dev libcurl4-openssl-dev \
rake libxml2-dev libxslt1-dev patch g++ build-essential \
libssl-dev libaugeas-dev \
libssl-dev libaugeas-dev pkgconf \
postgresql-server-dev-all \
>/dev/null

View File

@ -246,15 +246,11 @@ 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
STDERR.puts(
'Augeas gem is not installed, run `gem install ' \
'augeas -v \'0.6\'` to install it'
'opennebula-augeas` to install it'
)
exit(-1)
end

View File

@ -104,9 +104,6 @@ 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

@ -14,7 +14,6 @@
# limitations under the License. #
#--------------------------------------------------------------------------- #
gem 'augeas', '~> 0.6'
require 'augeas'
# rubocop:disable Style/ClassAndModuleChildren

View File

@ -127,15 +127,11 @@ class OneDB
def read_credentials(ops)
begin
# Suppress augeas require warning message
$VERBOSE = nil
gem 'augeas', '~> 0.6'
require 'augeas'
rescue Gem::LoadError
STDERR.puts(
'Augeas gem is not installed, run `gem install ' \
'augeas -v \'0.6\'` to install it'
'opennebula-augeas` to install it'
)
exit(-1)
end