move securiy service error explanation from comment
Change-Id: If81d6cfd41e8aec63aaa95f3190eec44d7d2fc01
This commit is contained in:
parent
80e9298418
commit
f1b20cd4a9
|
@ -66,9 +66,9 @@ class SecurityServiceController(wsgi.Controller):
|
|||
share_nets = db.share_network_get_all_by_security_service(
|
||||
context, id)
|
||||
if share_nets:
|
||||
# Cannot delete security service
|
||||
# if it is assigned to share networks
|
||||
raise exc.HTTPForbidden()
|
||||
msg = _("Cannot delete security service. It is "
|
||||
"assigned to share network(s)")
|
||||
raise exc.HTTPForbidden(explanation=msg)
|
||||
policy.check_policy(context, RESOURCE_NAME,
|
||||
'delete', security_service)
|
||||
db.security_service_delete(context, id)
|
||||
|
|
Loading…
Reference in New Issue