Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not ready for py3 #11

Closed
safanaj opened this issue Apr 11, 2019 · 1 comment
Closed

not ready for py3 #11

safanaj opened this issue Apr 11, 2019 · 1 comment

Comments

@safanaj
Copy link
Contributor

safanaj commented Apr 11, 2019

Apparently this line https://github.com/amendlik/gitstack-pillar/blob/develop/_pillar/gitstack.py#L86
cannot works on PY3

2019-04-11 23:12:07,106 [salt.pillar      :984 ][ERROR   ][6684] Exception caught loading ext_pillar 'gitstack':
  File "/usr/lib/python3/dist-packages/salt/pillar/__init__.py", line 974, in ext_pillar
    key)
  File "/usr/lib/python3/dist-packages/salt/pillar/__init__.py", line 902, in _external_pillar_data
    *val)
  File "/var/cache/salt/master/extmods/pillar/gitstack.py", line 86, in ext_pillar
    if len(salt.utils.gitfs.GitPillar.__init__.im_func.func_code.co_varnames) > 2:

2019-04-11 23:12:07,339 [salt.pillar      :1036][CRITICAL][6684] Pillar render error: Failed to load ext_pillar gitstack: 'function' object has no attribute 'im_func'
@safanaj
Copy link
Contributor Author

safanaj commented Apr 11, 2019

on PY3 we should use:

salt.utils.gitfs.GitPillar.__init__.__code__.co_varnames

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants