@@ -329,19 +329,20 @@ async def mutate(
329329 url : str ,
330330 type : ContainerRegistryType ,
331331 registry_name : str ,
332- project : str ,
332+ project : str | UndefinedType = Undefined ,
333333 is_global : bool | UndefinedType = Undefined ,
334334 username : str | UndefinedType = Undefined ,
335335 password : str | UndefinedType = Undefined ,
336336 ssl_verify : bool | UndefinedType = Undefined ,
337337 extra : dict | UndefinedType = Undefined ,
338338 ) -> CreateContainerRegistryNode :
339339 ctx : GraphQueryContext = info .context
340+ sanitized_project = cast (Optional [str ], project if project is not Undefined else None )
340341 validator = ContainerRegistryValidator (
341342 ContainerRegistryValidatorArgs (
342343 url = url ,
343344 type = type ,
344- project = project ,
345+ project = sanitized_project ,
345346 )
346347 )
347348
@@ -353,7 +354,7 @@ async def mutate(
353354 type = type ,
354355 registry_name = registry_name ,
355356 is_global = cast (Optional [bool ], is_global if is_global is not Undefined else None ),
356- project = project ,
357+ project = sanitized_project ,
357358 username = cast (Optional [str ], username if username is not Undefined else None ),
358359 password = cast (Optional [str ], password if password is not Undefined else None ),
359360 ssl_verify = cast (
0 commit comments