fix(parser): resource URL should only be parsed if there is one

This commit is contained in:
peaklabs-dev
2025-01-21 18:55:07 +01:00
parent 31992f4d02
commit 1799081ebd

View File

@@ -43,7 +43,11 @@ class DockerImageParser
public function getFullImageNameWithoutTag(): string public function getFullImageNameWithoutTag(): string
{ {
return $this->registryUrl.'/'.$this->imageName; if ($this->registryUrl) {
return $this->registryUrl.'/'.$this->imageName;
}
return $this->imageName;
} }
public function getRegistryUrl(): string public function getRegistryUrl(): string