Skip to content

Commit

Permalink
Check dependencies type before appling str operations (#32693)
Browse files Browse the repository at this point in the history
  • Loading branch information
techhat authored and Nicole Thomas committed Apr 20, 2016
1 parent 3aa0605 commit bba089d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions salt/spm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ def _resolve_deps(self, formula_def):

can_has = {}
cant_has = []
if 'dependencies' in formula_def and formula_def['dependencies'] is None:
formula_def['dependencies'] = ''
for dep in formula_def.get('dependencies', '').split(','):
dep = dep.strip()
if not dep:
Expand Down

0 comments on commit bba089d

Please sign in to comment.