X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/cfaa1679d12e0d90d40ba7904b47f993cc514397..3d2e9b462de5b71d75048c31e98621b2752dd72a:/cookbooks/planet/files/default/replication-bin/replicate-changesets diff --git a/cookbooks/planet/files/default/replication-bin/replicate-changesets b/cookbooks/planet/files/default/replication-bin/replicate-changesets index 0c53856d9..c87183fbb 100755 --- a/cookbooks/planet/files/default/replication-bin/replicate-changesets +++ b/cookbooks/planet/files/default/replication-bin/replicate-changesets @@ -139,7 +139,7 @@ end class Replicator def initialize(config) @config = YAML.safe_load(File.read(config)) - @state = YAML.safe_load(File.read(@config["state_file"]), [Time]) + @state = YAML.safe_load(File.read(@config["state_file"]), :permitted_classes => [Time]) @conn = PG::Connection.connect(@config["db"]) # get current time from the database rather than the current system @now = @conn.exec("select now() as now").map { |row| Time.parse(row["now"]) }[0]