Store the facts payload
This enable us to look at the object being sent over and debug why puppetdb is barfing on it. Change-Id: Ie2edf5bedc34bb6541f070d2f6d83af746fdf6bd
This commit is contained in:
parent
403d157c45
commit
0909fa99f7
@ -109,6 +109,9 @@ def main():
|
||||
"producer-timestamp": timestamp,
|
||||
"values": facts }}
|
||||
|
||||
payload_dump = logfile[:-4] + "facts_payload.json"
|
||||
with open(payload_dump, 'w') as f:
|
||||
f.write(json.dumps(payload))
|
||||
r = requests.post(endpoint, json=payload, **requests_kwargs)
|
||||
if r.status_code != 200:
|
||||
module.fail_json(
|
||||
|
Loading…
x
Reference in New Issue
Block a user