Skip to content

Commit

Permalink
fix: review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Sep 29, 2023
1 parent 05dc688 commit c2581fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ns-api/files/ns.mwan
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ if cmd == 'list':
'destination_address': 'String',
'destination_port': 'String',
},
'test': {}
}))
elif cmd == 'call':
action = sys.argv[2]
Expand Down Expand Up @@ -109,6 +110,8 @@ elif cmd == 'call':
data['destination_port'] if 'destination_port' in data else None,
)
print(json.dumps({'message': 'success'}))
elif action == 'test':
print(json.dumps({'message': e_uci.get('ns-api', 'defaults_mwan')}))
except KeyError as e:
print(json.dumps(utils.validation_error(e.args[0], 'required')))
except json.JSONDecodeError:
Expand Down

0 comments on commit c2581fa

Please sign in to comment.