]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
pass an option to delay the deletion of the node
authorAlfredo Deza <adeza@redhat.com>
Thu, 28 Jan 2016 16:01:44 +0000 (11:01 -0500)
committerAlfredo Deza <adeza@redhat.com>
Thu, 28 Jan 2016 16:01:44 +0000 (11:01 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-ansible-pull-requests/build/teardown

index aa44f44c8a7624ff72f3c7a2bfec443aff1f02e7..aa20b4cac53ae1fccce9d32377239b50897a6e1b 100644 (file)
@@ -1,4 +1,6 @@
 #!/bin/bash
 
 NODE=$(echo $NODE_NAME | awk -F'__' '{print $2}')
-curl -k -X POST https://mita.ceph.com/api/nodes/${NODE}/delete/
+# The "delay" means that mita will wait these many seconds before proceeding
+# with the deletion of the node
+curl -k  -d '{"delay": 5}' -X POST https://mita.ceph.com/api/nodes/${NODE}/delete/