File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -25,19 +25,20 @@ def setup_routes(app):
2525
2626
2727async def register_app (sdk : SDK , client : AsyncAidboxClient ):
28- app_resource = client .resource (
29- "App" ,
30- ** sdk .build_manifest () ,
31- )
28+ app_manifest = sdk .build_manifest ()
29+
3230 try :
33- await app_resource .save ()
31+ # We create app directly using execute to avoid conversion
32+ await client .execute (
33+ f"/App/{ app_manifest .id } " , method = "put" , data = app_manifest )
34+
3435 logger .info ("Creating seeds and applying migrations" )
3536 await sdk .create_seed_resources (client )
3637 await sdk .apply_migrations (client )
3738 logger .info ("Aidbox app successfully registered" )
3839 except OperationOutcome as error :
3940 logger .error (
40- "Error during the App registration: {}" . format ( json .dumps (error , indent = 2 ) )
41+ "Error during the App registration: %s" , json .dumps (error , indent = 2 )
4142 )
4243 sys .exit (errno .EINTR )
4344 except (
You can’t perform that action at this time.
0 commit comments