Fix swift key generation in python3
The swift key used in aws tests is generated in a fashion that doesn't
work in python3. This fixes it.
Change-Id: I31d7046f343987ca3803cfc95c189e5c9f6dcc8e
diff --git a/functional/test_aws_stack.py b/functional/test_aws_stack.py
index 296ed8d..1241d22 100644
--- a/functional/test_aws_stack.py
+++ b/functional/test_aws_stack.py
@@ -75,7 +75,7 @@
self.object_container_name = test.rand_name()
self.project_id = self.identity_client.project_id
self.swift_key = hashlib.sha224(
- str(random.getrandbits(256))).hexdigest()[:32]
+ str(random.getrandbits(256)).encode('ascii')).hexdigest()[:32]
key_header = 'x-container-meta-temp-url-key'
self.object_client.put_container(self.object_container_name,
{key_header: self.swift_key})