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

Fix failures in tests for 6.4 (#3098)

* M #-: Fix monitoring encryption (#2855)

* M #-: Fix man pages for oneflow
This commit is contained in:
Pavel Czerný 2024-06-10 13:45:17 +02:00 committed by GitHub
parent ed5f3898fc
commit 869b7ce3d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -50,9 +50,9 @@ COMMANDS=(
'bin/oneprovision' 'manages OpenNebula provisions'
'bin/oneprovider' 'manages OpenNebula providers'
'oneflow' 'Manage oneFlow Services'
'oneflow-template' 'Manage oneFlow Templates'
'onevmdump' 'Dumps VM content'
'bin/oneflow' 'Manage oneFlow Services'
'bin/oneflow-template' 'Manage oneFlow Templates'
'bin/onevmdump' 'Dumps VM content'
'lib/onegate/onegate' 'Manage communication between VMs and OpenNebula'

View File

@ -57,7 +57,7 @@ class MonitorClient
# :pubkey [:String] public key to encrypt messages
def initialize(server, port, id, opt = {})
@opts = {
:pubkey => ''
:pubkey => nil
}.merge opt
addr = Socket.getaddrinfo(server, port)[0]
@ -77,7 +77,7 @@ class MonitorClient
# Formats message payload to send over the wire
def pack(data)
if @pubkey && !@pubkey.empty?
if @pubkey
block_size = @pubkey.n.num_bytes - 11
edata = ''