fix sheepdog path
We always need to specify a port, else kvm does not find the disk.
This commit is contained in:
@ -87,8 +87,10 @@ sub path {
|
||||
my ($vtype, $name, $vmid) = $class->parse_volname($volname);
|
||||
|
||||
my $portal = $scfg->{portal};
|
||||
my ($server, $port) = split(':', $portal);
|
||||
$port = 7000 if !$port;
|
||||
|
||||
my $path = "sheepdog:$portal:$name";
|
||||
my $path = "sheepdog:$server:$port:$name";
|
||||
|
||||
return ($path, $vmid, $vtype);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user