> +sub systemd_managed { > + > + my $version; > + my $outfunc = sub { > + my $line = shift; > + > + if ($line =~ m/ceph version (\d+).\d+.\d+/) { > + $version = $1; > + } > + }; > + > + run_command(['/usr/bin/ceph', '--version'], outfunc => $outfunc);
Isn't there an simpler test for that? I do not want to run external command for such test. _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel