From 0b4fec0a065e4e3b2302850cf310a9f3e306b087 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Fri, 3 Apr 2015 16:35:16 -0500 Subject: [PATCH] Don't use a dict comprehension, be more verbose --- lib/ansible/modules/cloud/google/gc_storage.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/google/gc_storage.py b/lib/ansible/modules/cloud/google/gc_storage.py index 8566843dab..578722e301 100644 --- a/lib/ansible/modules/cloud/google/gc_storage.py +++ b/lib/ansible/modules/cloud/google/gc_storage.py @@ -242,8 +242,10 @@ def transform_headers(headers): :rtype: dict """ - - return {key: str(value) for key, value in headers.items()} + + for key, value in headers.items(): + headers[key] = str(value) + return headers def upload_gsfile(module, gs, bucket, obj, src, expiry): try: