diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-12-15 03:31:54 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-12-15 03:31:54 +0000 |
commit | 78d9a9fffa04a9e5495d25839eeab9ad308c103c (patch) | |
tree | 1cd5a040a9e893099f0ed4f8283c332952ef0744 | |
parent | a331631a04e9c948dc7aeeaa899e51f0a3a26b3f (diff) | |
parent | d15922cd0bca70edba5436ee41e4559fc340eeb9 (diff) | |
download | horizon-78d9a9fffa04a9e5495d25839eeab9ad308c103c.tar.gz |
Merge "Fix job_binaries deletion" into stable/liberty
-rw-r--r-- | openstack_dashboard/contrib/sahara/content/data_processing/job_binaries/tables.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openstack_dashboard/contrib/sahara/content/data_processing/job_binaries/tables.py b/openstack_dashboard/contrib/sahara/content/data_processing/job_binaries/tables.py index d937d78be..48f16604a 100644 --- a/openstack_dashboard/contrib/sahara/content/data_processing/job_binaries/tables.py +++ b/openstack_dashboard/contrib/sahara/content/data_processing/job_binaries/tables.py @@ -53,7 +53,11 @@ class DeleteJobBinary(tables.DeleteAction): def delete(self, request, obj_id): jb = saharaclient.job_binary_get(request, obj_id) - (jb_type, jb_internal_id) = jb.url.split("://") + + url_parts = jb.url.split("://") + jb_type = url_parts[0] + jb_internal_id = url_parts[len(url_parts) - 1] + if jb_type == "internal-db": try: saharaclient.job_binary_internal_delete(request, |