File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
microservices/gatewayApi/v2/routes Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -457,7 +457,10 @@ def patterned_write_config(namespace: str) -> object:
457
457
:return: JSON of success message or error message
458
458
"""
459
459
460
- dry_run = False
460
+ config = request .get_json ()
461
+
462
+ dry_run = config .get ("dryRun" , True )
463
+ document = config .get ("document" , {})
461
464
462
465
event_id = str (uuid .uuid4 ())
463
466
@@ -517,7 +520,7 @@ def patterned_write_config(namespace: str) -> object:
517
520
518
521
# dfile.save("%s/%s" % (tempFolder, 'config.yaml'))
519
522
520
- gw_pattern_context = GatewayConfigPattern (** request . get_json () )
523
+ gw_pattern_context = GatewayConfigPattern (** document )
521
524
gw_pattern_context .set_gateway (namespace )
522
525
523
526
dfile = gw_pattern_context .get_config_file ()
You can’t perform that action at this time.
0 commit comments