From: Peter Palfrader Date: Sat, 28 Sep 2019 17:37:20 +0000 (+0200) Subject: pg cluster facter: port is an integer X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=76f7e9867828c59d48d41f902a204f7280977ba4;p=mirror%2Fdsa-puppet.git pg cluster facter: port is an integer --- diff --git a/modules/postgres/lib/facter/pg_clusters.rb b/modules/postgres/lib/facter/pg_clusters.rb index ed1cbce70..8bbd79000 100644 --- a/modules/postgres/lib/facter/pg_clusters.rb +++ b/modules/postgres/lib/facter/pg_clusters.rb @@ -13,7 +13,7 @@ Facter.add(:postgresql_clusters) do clusters << { 'version' => version, 'cluster' => cluster, - 'port' => port, + 'port' => port.to_i(), 'status' => status.split(',').product([true]).to_h(), 'owner' => owner, 'datadir' => datadir,