Skip to content

Instantly share code, notes, and snippets.

/master Secret

Created February 14, 2016 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/74e7a4d2112d0891116c to your computer and use it in GitHub Desktop.
Save anonymous/74e7a4d2112d0891116c to your computer and use it in GitHub Desktop.
Feb 13 21:16:27 top salt-master[16946]: [ERROR ] Failed to load ext_pillar file_tree: local variable 'prefix' referenced before assignment
Feb 13 21:16:27 top salt-master[16946]: Traceback (most recent call last):
Feb 13 21:16:27 top salt-master[16946]: File "/usr/lib/python2.7/dist-packages/salt/pillar/__init__.py", line 637, in ext_pillar
Feb 13 21:16:27 top salt-master[16946]: key)
Feb 13 21:16:27 top salt-master[16946]: File "/usr/lib/python2.7/dist-packages/salt/pillar/__init__.py", line 589, in _external_pillar_data
Feb 13 21:16:27 top salt-master[16946]: ext = self.ext_pillars[key](self.opts['id'], pillar, **val)
Feb 13 21:16:27 top salt-master[16946]: File "/usr/lib/python2.7/dist-packages/salt/pillar/file_tree.py", line 307, in ext_pillar
Feb 13 21:16:27 top salt-master[16946]: keep_newline)
Feb 13 21:16:27 top salt-master[16946]: File "/usr/lib/python2.7/dist-packages/salt/pillar/file_tree.py", line 234, in _construct_pillar
Feb 13 21:16:27 top salt-master[16946]: and _check_newline(prefix,
Feb 13 21:16:27 top salt-master[16946]: UnboundLocalError: local variable 'prefix' referenced before assignment
/srv/salt
├── file_tree
│   ├── hosts
│   │   ├── m1.nacl.littlebluetech.com
│   │   │   ├── file.txt
│   │   │   └── m1.nacl.littlebluetech.com.txt
│   │   ├── m2.nacl.littlebluetech.com
│   │   │   ├── file.txt
│   │   │   └── m2.nacl.littlebluetech.com.txt
│   │   └── top.nacl.littlebluetech.com
│   │   ├── file.txt
│   │   └── top.nacl.littlebluetech.com.txt
│   └── nodegroups
│   └── all
│   ├── file.txt
│   └── nodegroups_all.txt
├── modules
└── pillar
├── default.sls
└── top.sls
interface: '::'
ipv6: True
extension_modules: /srv/salt/modules
pillar_roots:
base:
- /srv/salt/pillar
ext_pillar:
- file_tree:
root_dir: /srv/salt/file_tree
keep_newline: True
nodegroups:
all: '*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment