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

[BUG] Arrays being dumped into config file in invalid form. #275

Open
waynegemmell opened this issue Jul 27, 2023 · 0 comments
Open

[BUG] Arrays being dumped into config file in invalid form. #275

waynegemmell opened this issue Jul 27, 2023 · 0 comments
Labels

Comments

@waynegemmell
Copy link
Contributor

Your setup

Formula commit hash / release tag

Versions reports (master & minion)

Salt: 3006.1+192.g23582dce20

Pillar / config used

mysql:
  server_config:
    file: 50-server.cnf
    # my.cnf sections changes
    sections:
      mysqld:
        replicate-ignore-table:
          - core.table1
          - core.table2                 
          - core.table3    

Bug details

Describe the bug

When an array of data is inserted into the config file the above example is written out as

        replicate-ignore-table = ['core.table1',  'core.table2', 'core.table3']

This isn't a valid format for mysql configuration.

Steps to reproduce the bug

Expected behaviour

The output should be as follows.

replicate-ignore-table                  = 'core.table1'
replicate-ignore-table                  = 'core.table2'
replicate-ignore-table                  = 'core.table3'

Attempts to fix the bug

I've fixed it in a PR I'll be posting shortly.

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

No branches or pull requests

1 participant