mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Initial support for downloading stdout
This commit is contained in:
@@ -45,6 +45,9 @@ class PlainTextRenderer(renderers.BaseRenderer):
|
||||
data = unicode(data)
|
||||
return data.encode(self.charset)
|
||||
|
||||
class DownloadTextRenderer(PlainTextRenderer):
|
||||
format = "txt_download"
|
||||
|
||||
class AnsiTextRenderer(PlainTextRenderer):
|
||||
|
||||
media_type = 'text/plain'
|
||||
|
||||
Reference in New Issue
Block a user