refactor: Skip returning volume if driver type is cifs or nfs
This commit is contained in:
parent
681a745fc7
commit
d2a306dab9
1 changed files with 2 additions and 2 deletions
|
|
@ -3246,10 +3246,10 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
|
||||||
if ($topLevel->get('volumes')->has($source->value())) {
|
if ($topLevel->get('volumes')->has($source->value())) {
|
||||||
$temp = $topLevel->get('volumes')->get($source->value());
|
$temp = $topLevel->get('volumes')->get($source->value());
|
||||||
if (data_get($temp, 'driver_opts.type') === 'cifs') {
|
if (data_get($temp, 'driver_opts.type') === 'cifs') {
|
||||||
return $volume;
|
continue;
|
||||||
}
|
}
|
||||||
if (data_get($temp, 'driver_opts.type') === 'nfs') {
|
if (data_get($temp, 'driver_opts.type') === 'nfs') {
|
||||||
return $volume;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$slugWithoutUuid = Str::slug($source, '-');
|
$slugWithoutUuid = Str::slug($source, '-');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue