handle new share list output

This commit is contained in:
Robin Appelman 2018-03-27 17:25:21 +02:00
commit 89f47cfdf2
4 changed files with 27 additions and 6 deletions

View file

@ -166,6 +166,10 @@ class Parser {
if (strtolower($type) === 'disk') {
$shareNames[$name] = $description;
}
} else if (strpos($line, 'Disk')) {
// new output format
list($name, $description) = explode('Disk', $line);
$shareNames[trim($name)] = trim($description);
}
}
return $shareNames;