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

Hack to make rendering work on CentOS 6 #298

Merged
merged 2 commits into from
Mar 4, 2017

Commits on Feb 24, 2017

  1. Hack to make rendering work on CentOS 6

     !!   Not tested with an actual   !!
     !!  configured `ext_pillar` yet  !!
    
    - jinja on RHEL/CentOS 6 has no 'mapping'
      test (see salt-formula issue saltstack-formulas#193)
    - {% do ... %} allows no assignment, only
      function calls
    - of course, `type(foo) is dict` doesn't
      work because it's no jinja test
    - maybe `.isinstance()` would be nicer/more
      reliable
    0xf10e committed Feb 24, 2017
    Configuration menu
    Copy the full SHA
    5327e92 View commit details
    Browse the repository at this point in the history
  2. Work around missing is mapping on CentOS/RHEL 6

    Checks for 'dict' in `x.__class__.__name__` b/c
    neither `type()` nor `isinstance()` is available.
    0xf10e committed Feb 24, 2017
    Configuration menu
    Copy the full SHA
    e86e6fc View commit details
    Browse the repository at this point in the history