From 4c31a357493a9f7ca894fa378c52db772a18abd5 Mon Sep 17 00:00:00 2001 From: TobyLockyer Date: Wed, 5 May 2021 17:07:00 +0100 Subject: [PATCH 1/3] Update apidb.py --- plugins/modules/apidb.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/modules/apidb.py b/plugins/modules/apidb.py index 3c29b5a..8ec0539 100644 --- a/plugins/modules/apidb.py +++ b/plugins/modules/apidb.py @@ -23,9 +23,7 @@ def sanitiseDict(d): def apidb(directory,p,apiendpoint,filename): - API_ENDPOINT = p["ansibledb_server"] + "/api/" + apiendpoint ## this will be http://35.177.212.236:5000 we should actually include http in the param too - #API_ENDPOINT = "http://localhost:5000/api/" + apiendpoint - headers = { + API_ENDPOINT = p["ansibledb_server"] + "/api/" + apiendpoint 'Content-Type': 'text/json', 'Accept':'application/json' } From 9aadf34af874cf5fa8149ccfc6ac6637fb717487 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 1 Jun 2021 16:09:39 +0000 Subject: [PATCH 2/3] updated --- galaxy.yml | 2 +- plugins/modules/apidb.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index ea5fa6a..d3518f9 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -9,7 +9,7 @@ namespace: apidb name: ansibledb_opensource # The version of the collection. Must be compatible with semantic versioning -version: 0.9.1 +version: 0.9.2 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md diff --git a/plugins/modules/apidb.py b/plugins/modules/apidb.py index 7985825..d69e18f 100644 --- a/plugins/modules/apidb.py +++ b/plugins/modules/apidb.py @@ -24,6 +24,7 @@ def sanitiseDict(d): def apidb(directory,p,apiendpoint,filename): API_ENDPOINT = p["ansibledb_server"] + "/api/" + apiendpoint + headers = { 'Content-Type': 'text/json', 'Accept':'application/json' } From f407106c64b83f29c25a0c4380cca0a2fb786544 Mon Sep 17 00:00:00 2001 From: TobyLockyer Date: Wed, 15 Sep 2021 15:51:22 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 10ec29b..150166a 100644 --- a/README.md +++ b/README.md @@ -342,3 +342,4 @@ This role was written and contributed to by the following people: - [Dennis McCarthy](https://github.com/dmccuk) - [Seth Daemen](https://github.com/daemenseth) +- [Toby Lockyer] (https://github/tobylockyer)