pg cluster facter: port is an integer
authorPeter Palfrader <peter@palfrader.org>
Sat, 28 Sep 2019 17:37:20 +0000 (19:37 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 28 Sep 2019 17:37:20 +0000 (19:37 +0200)
modules/postgres/lib/facter/pg_clusters.rb

index ed1cbce..8bbd790 100644 (file)
@@ -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,