Browse code

Added Server-Side Encryption (SSE) to output of --info

Kevin Daub authored on 2013/06/11 12:12:44
Showing 1 changed files
... ...
@@ -596,6 +596,12 @@ def cmd_info(args):
596 596
                 output(u"   Last mod:  %s" % info['headers']['last-modified'])
597 597
                 output(u"   MIME type: %s" % info['headers']['content-type'])
598 598
                 output(u"   MD5 sum:   %s" % info['headers']['etag'].strip('"'))
599
+
600
+                if 'x-amz-server-side-encryption' in info['headers']:
601
+		 	output(u"   SSE:       %s" % info['headers']['x-amz-server-side-encryption'])
602
+		else:
603
+			output(u"   SSE:       NONE")		
604
+
599 605
             else:
600 606
                 info = s3.bucket_info(uri)
601 607
                 output(u"%s (bucket):" % uri.uri())