Skip to content

Documentation out of date for mysql::db sql parameter #1516

Closed
@kreczko

Description

@kreczko

Describe the Change You Would Like

Following current examples and documentation leads to an error:

Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Mysql::Db[apel]: parameter 'sql' expects a value of type Undef or Array, got String

→ documentation related to the sql parameter is incorrect.

manifests/db.pp

# @param sql
#   The path to the sqlfile you want to execute. This can be an array containing one or more file paths.

→ needs to be an array of one or more files (or undef) - not sure about correct phrasing.

README.md

mysql::db { 'mydb':
  ...
  sql             => '/path/to/sqlfile.gz',
  ...
}

needs to be

mysql::db { 'mydb':
  ...
  sql             => ['/path/to/sqlfile.gz'],
  ...
}

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