Browse Source

Fix log actions

Story: 2008906
Task: 42485
Change-Id: Idb412781ca92182887d75d8c89cecbc400d02300
changes/56/792056/1
Lingxian Kong 4 weeks ago
parent
commit
1e9ee5bc5e
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      trove_dashboard/api/trove.py

+ 8
- 4
trove_dashboard/api/trove.py View File

@ -365,19 +365,23 @@ def log_list(request, instance_id):
def log_enable(request, instance_id, log_name):
return troveclient(request).instances.log_enable(instance_id, log_name)
return troveclient(request).instances.log_action(instance_id, log_name,
enable=True)
def log_disable(request, instance_id, log_name):
return troveclient(request).instances.log_disable(instance_id, log_name)
return troveclient(request).instances.log_action(instance_id, log_name,
disable=True)
def log_publish(request, instance_id, log_name):
return troveclient(request).instances.log_publish(instance_id, log_name)
return troveclient(request).instances.log_action(instance_id, log_name,
publish=True)
def log_discard(request, instance_id, log_name):
return troveclient(request).instances.log_discard(instance_id, log_name)
return troveclient(request).instances.log_action(instance_id, log_name,
discard=True)
def log_tail(request, instance_id, log_name, publish, lines, swift=None):


Loading…
Cancel
Save