Skip to content

Commit e391260

Browse files
committed
Ignore the registry config if the provided config path is not valid to read
1 parent 75740e5 commit e391260

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

charon/config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ def validate(self) -> bool:
6666
if self.__quay_radas_registry_config and not os.access(
6767
self.__quay_radas_registry_config, os.R_OK
6868
):
69-
logger.error("The quay registry config for oras is not valid!")
70-
return False
69+
self.__quay_radas_registry_config = None
70+
logger.warning(
71+
"The quay registry config for oras is not valid, will ignore the registry config!"
72+
)
7173
return True
7274

7375
def umb_target(self) -> str:

0 commit comments

Comments
 (0)