From 8e2d506a3967af13932548612be650f8a9db0757 Mon Sep 17 00:00:00 2001 From: Matt Amos Date: Sun, 27 Oct 2013 17:03:07 +0000 Subject: [PATCH] Missing `to_s` conversion for libxml. --- .../planet/files/default/replication-bin/replicate-changesets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/planet/files/default/replication-bin/replicate-changesets b/cookbooks/planet/files/default/replication-bin/replicate-changesets index b472d7952..e2d4cc109 100644 --- a/cookbooks/planet/files/default/replication-bin/replicate-changesets +++ b/cookbooks/planet/files/default/replication-bin/replicate-changesets @@ -84,7 +84,7 @@ class Replicator xml['created_at'] = cs.created_at.getutc.xmlschema xml['closed_at'] = cs.closed_at.getutc.xmlschema if cs.closed?(@now) xml['open'] = cs.open?(@now).to_s - xml['num_changes'] = cs.num_changes + xml['num_changes'] = cs.num_changes.to_s res = @conn.exec("select u.id, u.display_name, c.min_lat, c.max_lat, c.min_lon, c.max_lon from users u join changesets c on u.id=c.user_id where c.id=#{cs.id}") xml['user'] = res[0]['display_name'] -- 2.39.5