Skip to content

Commit

Permalink
(maint) format timestamp with ISO formatter
Browse files Browse the repository at this point in the history
in the pe-puppetdb tests, this `str` call was leaving in a space between
the date and time that wasn't working as a URL parameter. Switch to
using the to-string function which formats the timestamp with ISO 8601
formatting, which uses a T to separate the date and time.
  • Loading branch information
austb authored and rbrw committed Aug 8, 2023
1 parent b5f1a3e commit ab26ff8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/puppetlabs/puppetdb/client.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[puppetlabs.puppetdb.command.constants :refer [command-names]]
[puppetlabs.puppetdb.cheshire :as json]
[puppetlabs.puppetdb.schema :refer [defn-validated]]
[puppetlabs.puppetdb.time :as t]
[puppetlabs.puppetdb.utils :as utils]
[schema.core :as s])
(:import
Expand Down Expand Up @@ -51,7 +52,7 @@
:certname certname
:producer-timestamp (-> payload
:producer_timestamp
str)
t/to-string)
:timeout timeout})
url (str (utils/base-url->str base-url) url-params)
post-opts (merge {:body body
Expand Down

0 comments on commit ab26ff8

Please sign in to comment.