]> git.immae.eu Git - github/fretlink/ansible-kong-app.git/commitdiff
Merge pull request #27 from gaetanfl/fix_upstream_creation_return_code master v0.34.0
authorGaëtan <36162164+gaetanfl@users.noreply.github.com>
Fri, 10 Dec 2021 16:26:55 +0000 (17:26 +0100)
committerGitHub <noreply@github.com>
Fri, 10 Dec 2021 16:26:55 +0000 (17:26 +0100)
upstream: allow 200 as a valid return code when adding target

tasks/upstream.yml

index 47f2e89ff1cd099cd56b632f4cf6bf737feb9af8..6aab61709af56fc882356cfc6769205db8e62a01 100644 (file)
@@ -29,7 +29,7 @@
     headers:
       apikey: "{{ server.kong_app_admin_apikey }}"
       Content-Type: application/json
-    status_code: 201
+    status_code: 200,201
   with_items: "{{ upstream.targets | default([]) }}"
   loop_control:
     loop_var: target