Check for empty strings
This commit is contained in:
parent
3d1da3bbd4
commit
70b5b1b8ed
1 changed files with 4 additions and 0 deletions
|
|
@ -327,6 +327,10 @@ class Bouncer
|
|||
public function parseContainerEnvironmentVariables(array $envs, Target $bouncerTarget): Target
|
||||
{
|
||||
foreach ($envs as $eKey => $eVal) {
|
||||
if(empty($eVal)){
|
||||
$this->logger->warning("{key} set for {target} is empty, skipping.", ['key' => $eKey, 'emoji' => Emoji::warning(), 'target' => $bouncerTarget->getName()]);
|
||||
continue;
|
||||
}
|
||||
switch ($eKey) {
|
||||
case 'BOUNCER_LABEL':
|
||||
$bouncerTarget->setLabel($eVal);
|
||||
|
|
|
|||
Loading…
Reference in a new issue