Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
20f65f2c
Commit
20f65f2c
authored
Jul 28, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8262 from icoloma/patch-1
Bugfix: bulletproof unexpected_error_msg at gce.py
parents
e75964e2
979824ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
lib/ansible/module_utils/gce.py
+3
-4
No files found.
lib/ansible/module_utils/gce.py
View file @
20f65f2c
...
...
@@ -27,6 +27,8 @@
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
import
pprint
USER_AGENT_PRODUCT
=
"Ansible-gce"
USER_AGENT_VERSION
=
"v1"
...
...
@@ -64,7 +66,4 @@ def gce_connect(module):
def
unexpected_error_msg
(
error
):
"""Create an error string based on passed in error."""
msg
=
'Unexpected response: HTTP return_code['
msg
+=
'
%
s], API error code[
%
s] and message:
%
s'
%
(
error
.
http_code
,
error
.
code
,
str
(
error
.
value
))
return
msg
return
'Unexpected response: '
+
pprint
.
pformat
(
vars
(
error
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment