第二次运行postgres_database.present会导致错误“有错误的参数,无法在飞行中更改”

运行一个盐状态,看起来像下面为django创build一个postgres数据库…

django-db: postgres_database.present: - encoding: 'UTF-8' - owner: djangouser - db_user: postgres 

当我第一次运行时,到目前为止,这么好:

  ID: django-db Function: postgres_database.present Result: True Comment: The database django-db has been created Started: 20:59:01.148225 Duration: 494.007 ms Changes: ---------- django-db: Present 

但是当我再次运行它时,结果是一个错误:

  ID: django-db Function: postgres_database.present Result: False Comment: Database django-db has wrong parameters which couldn't be changed on fly. Started: 21:04:14.289538 Duration: 101.216 ms Changes: 

在IRC上信用户martin_,问题是'UTF-8'中的连字符。 国家应该是

 django-db: postgres_database.present: - encoding: 'UTF8' - owner: djangouser - db_user: postgres 

http://irclog.perlgeek.de/salt/2014-08-30/text