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
caf3cf69
Commit
caf3cf69
authored
May 30, 2015
by
Rene Moser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cloudstack: add timeout to utils
parent
fc807e29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
lib/ansible/module_utils/cloudstack.py
+2
-0
v1/ansible/module_utils/cloudstack.py
+2
-0
No files found.
lib/ansible/module_utils/cloudstack.py
View file @
caf3cf69
...
...
@@ -64,12 +64,14 @@ class AnsibleCloudStack:
api_secret
=
self
.
module
.
params
.
get
(
'secret_key'
)
api_url
=
self
.
module
.
params
.
get
(
'api_url'
)
api_http_method
=
self
.
module
.
params
.
get
(
'api_http_method'
)
api_timeout
=
self
.
module
.
params
.
get
(
'api_timeout'
)
if
api_key
and
api_secret
and
api_url
:
self
.
cs
=
CloudStack
(
endpoint
=
api_url
,
key
=
api_key
,
secret
=
api_secret
,
timeout
=
api_timeout
,
method
=
api_http_method
)
else
:
...
...
v1/ansible/module_utils/cloudstack.py
View file @
caf3cf69
...
...
@@ -64,12 +64,14 @@ class AnsibleCloudStack:
api_secret
=
self
.
module
.
params
.
get
(
'secret_key'
)
api_url
=
self
.
module
.
params
.
get
(
'api_url'
)
api_http_method
=
self
.
module
.
params
.
get
(
'api_http_method'
)
api_timeout
=
self
.
module
.
params
.
get
(
'api_timeout'
)
if
api_key
and
api_secret
and
api_url
:
self
.
cs
=
CloudStack
(
endpoint
=
api_url
,
key
=
api_key
,
secret
=
api_secret
,
timeout
=
api_timeout
,
method
=
api_http_method
)
else
:
...
...
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