mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge branch '2015.5' into '2015.8'
Conflicts: - salt/config.py
This commit is contained in:
commit
44c15f0b16
3 changed files with 9 additions and 3 deletions
|
@ -6,7 +6,7 @@ CloudStack Cloud Module
|
|||
The CloudStack cloud module is used to control access to a CloudStack based
|
||||
Public Cloud.
|
||||
|
||||
:depends: libcloud
|
||||
:depends: libcloud >= 0.15
|
||||
|
||||
Use of this module requires the ``apikey``, ``secretkey``, ``host`` and
|
||||
``path`` parameters.
|
||||
|
@ -216,7 +216,12 @@ def get_project(conn, vm_):
|
|||
'''
|
||||
Return the project to use.
|
||||
'''
|
||||
projects = conn.ex_list_projects()
|
||||
try:
|
||||
projects = conn.ex_list_projects()
|
||||
except AttributeError:
|
||||
# with versions <0.15 of libcloud this is causing an AttributeError.
|
||||
log.warning('Cannot get projects, you may need to update libcloud to 0.15 or later')
|
||||
return False
|
||||
projid = config.get_cloud_config_value('projectid', vm_, __opts__)
|
||||
|
||||
if not projid:
|
||||
|
|
|
@ -808,6 +808,7 @@ DEFAULT_MINION_OPTS = {
|
|||
'autoload_dynamic_modules': True,
|
||||
'environment': None,
|
||||
'pillarenv': None,
|
||||
'pillar_opts': False,
|
||||
# `pillar_cache` and `pillar_ttl`
|
||||
# are not used on the minion but are unavoidably in the code path
|
||||
'pillar_cache': False,
|
||||
|
|
|
@ -790,7 +790,7 @@ class Pillar(object):
|
|||
matches = self.top_matches(top)
|
||||
pillar, errors = self.render_pillar(matches)
|
||||
errors.extend(top_errors)
|
||||
if self.opts.get('pillar_opts', True):
|
||||
if self.opts.get('pillar_opts', False):
|
||||
mopts = dict(self.opts)
|
||||
if 'grains' in mopts:
|
||||
mopts.pop('grains')
|
||||
|
|
Loading…
Add table
Reference in a new issue