diff options
author | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2018-10-31 21:34:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-10-31 21:34:59 +0000 |
commit | d8add6acda393e5d1669412185550ceb33128f8f (patch) | |
tree | 5ffb7ac6154323b5c71f03a063e8a593aac63127 /src/dashboard/tasks.py | |
parent | 88b340bb2588b4c2e813fac9b38de32acafacb6d (diff) | |
parent | 4f6e3f5069bb682751a5db770e910777fa477b0d (diff) |
Merge "Fixes for access creation and removal"
Diffstat (limited to 'src/dashboard/tasks.py')
-rw-r--r-- | src/dashboard/tasks.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dashboard/tasks.py b/src/dashboard/tasks.py index 48008b6..0f7af1c 100644 --- a/src/dashboard/tasks.py +++ b/src/dashboard/tasks.py @@ -73,7 +73,11 @@ def booking_poll(): def cleanup_access(qs): for relation in qs: - pass # TODO + if "vpn" in relation.config.access_type.lower(): + relation.config.set_revoke(True) + relation.config.save() + relation.status = JobStatus.NEW + relation.save() cleanup_set = Booking.objects.filter(end__lte=timezone.now()).filter(job__complete=False) |