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

Stumbles over modulesdir directive #17

Open
fuero opened this issue Jan 26, 2018 · 1 comment
Open

Stumbles over modulesdir directive #17

fuero opened this issue Jan 26, 2018 · 1 comment

Comments

@fuero
Copy link

fuero commented Jan 26, 2018

crmngr mistakenly interprets a modulesdir statement as a module declaration.

To fix it:

In crmngr/controlrepository.py:

    @staticmethod
    def _collapse_puppetfile(lines):
        """remove whitespace and comments from puppetfile lines"""
        puppetfile_lines = []
        re_comment = re.compile(r'^\s*#')
        re_mod = re.compile(r'^\s*mod')

Change the line 206 to

        re_mod = re.compile(r'^\s*mod\s+')
andrekeller added a commit that referenced this issue Jan 28, 2018
andrekeller added a commit that referenced this issue Jan 28, 2018
@andrekeller
Copy link
Member

Hi @fuero

thanks for your report, fixed but not yet merged to master.

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