Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix gce module error reporting #13146

Merged
merged 1 commit into from
Nov 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/ansible/module_utils/gce.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#

import os
import pprint
import traceback
from libcloud.compute.providers import get_driver

USER_AGENT_PRODUCT="Ansible-gce"
Expand Down Expand Up @@ -92,4 +92,4 @@ def gce_connect(module, provider=None):

def unexpected_error_msg(error):
"""Create an error string based on passed in error."""
return 'Unexpected response: ' + pprint.pformat(vars(error))
return 'Unexpected response: (%s). Detail: %s' % (str(error), traceback.format_exc(error))