add alerts on /alias/custom/new and /v3/alias/options and below
This commit is contained in:
parent
99d26a01cb
commit
8cfd5e01dc
|
@ -27,7 +27,7 @@ def options():
|
|||
existing: array of existing aliases
|
||||
|
||||
"""
|
||||
LOG.warning("/alias/options is obsolete")
|
||||
LOG.e("/alias/options is obsolete")
|
||||
user = g.user
|
||||
hostname = request.args.get("hostname")
|
||||
|
||||
|
@ -106,7 +106,7 @@ def options_v2():
|
|||
|
||||
|
||||
"""
|
||||
LOG.exception("/v2/alias/options is obsolete")
|
||||
LOG.e("/v2/alias/options is obsolete")
|
||||
|
||||
user = g.user
|
||||
hostname = request.args.get("hostname")
|
||||
|
@ -186,7 +186,7 @@ def options_v3():
|
|||
|
||||
|
||||
"""
|
||||
LOG.warning("/v3/alias/options is obsolete")
|
||||
LOG.e("/v3/alias/options is obsolete")
|
||||
user = g.user
|
||||
hostname = request.args.get("hostname")
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ def new_custom_alias():
|
|||
409 if the alias already exists
|
||||
|
||||
"""
|
||||
LOG.warning("/alias/custom/new is obsolete")
|
||||
LOG.e("/alias/custom/new is obsolete")
|
||||
user: User = g.user
|
||||
if not user.can_create_new_alias():
|
||||
LOG.d("user %s cannot create any custom alias", user)
|
||||
|
|
Loading…
Reference in New Issue