Have write return data
@@ -199,7 +199,9 @@ def hashivault_write(module):
else:
returned_data = client.write(secret_path, **write_data)
if returned_data:
- result['data'] = str(returned_data)
+ result['data'] = returned_data
+ if returned_data is None:
+ result['data'] = ''
except Exception as e:
result['rc'] = 1
result['failed'] = True
