mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
[Salt-cloud] Allow to ignore ssl with Xen provider
Allow to ignore ssl verification for xen providers # /etc/salt/cloud.providers.d/xentest.conf xentest: ignore_ssl: True driver: xen Require a recent XenAPI.py which can be found here: https://github.com/xapi-project/xen-api/blob/master/scripts/examples/python/XenAPI.py
This commit is contained in:
parent
7d70bd6c80
commit
cf4b0bf786
@ -150,7 +150,14 @@ def _get_session():
|
|||||||
__opts__,
|
__opts__,
|
||||||
search_global=False
|
search_global=False
|
||||||
)
|
)
|
||||||
session = XenAPI.Session(url)
|
ignore_ssl = config.get_cloud_config_value(
|
||||||
|
'ignore_ssl',
|
||||||
|
get_configured_provider(),
|
||||||
|
__opts__,
|
||||||
|
default=False,
|
||||||
|
search_global=False
|
||||||
|
)
|
||||||
|
session = XenAPI.Session(url,ignore_ssl=ignore_ssl)
|
||||||
log.debug('url: {} user: {} password: {}, originator: {}'.format(
|
log.debug('url: {} user: {} password: {}, originator: {}'.format(
|
||||||
url,
|
url,
|
||||||
user,
|
user,
|
||||||
|
Loading…
Reference in New Issue
Block a user