in 'broadcast_node_kv' we send the status and make sure its always
a scalar so it gets send as a null terminated string via pack(Z*)
when we get it back from pmxcfs we have to unpack(Z*) again, or
we get a string with a trailing '\0'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
my $get_node_data = sub {
my ($node) = @_;
my $raw = $ipcc_get_status->("kv/$key", $node);
my $get_node_data = sub {
my ($node) = @_;
my $raw = $ipcc_get_status->("kv/$key", $node);
- $res->{$node} = $raw if $raw;
+ $res->{$node} = unpack("Z*", $raw) if $raw;