Skip to content

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

Open
@waynegemmell

Description

@waynegemmell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions