X-Git-Url: http://git.onelab.eu/?p=plstackapi.git;a=blobdiff_plain;f=planetstack%2Fcore%2Fdashboard%2Fviews%2Fdownload_ssh_commands.py;h=96d13934a433e9b307f18ae25b44caff049e2b24;hp=ba208857064333c942ab9299eae5516282e1b923;hb=62c66fb877abe4fd098c38b797f0bb624f641082;hpb=8ce133b9805597522ff5957d6a879f9b078787eb diff --git a/planetstack/core/dashboard/views/download_ssh_commands.py b/planetstack/core/dashboard/views/download_ssh_commands.py index ba20885..96d1393 100644 --- a/planetstack/core/dashboard/views/download_ssh_commands.py +++ b/planetstack/core/dashboard/views/download_ssh_commands.py @@ -1,6 +1,9 @@ from view_common import * from core.xoslib.objects.sliceplus import SlicePlus +# This was intended to serve as a download feature for the tenant view. Found +# a better way to do it. This is deprecated. + class DownloadSSHCommandsView(View): url = r'^sshcommands/(?P\d+)/$' @@ -11,6 +14,5 @@ class DownloadSSHCommandsView(View): slice = SlicePlus.objects.get(id=sliceid) - return HttpResponse(slice.getSliceInfo()["sshCommands"], content_type='text/text')