]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
use the new tag_name in clear_version.yml to compare to last_commit.stdout 262/head
authorAlfredo Deza <adeza@redhat.com>
Wed, 2 Dec 2015 18:16:24 +0000 (13:16 -0500)
committerAlfredo Deza <adeza@redhat.com>
Wed, 2 Dec 2015 18:16:24 +0000 (13:16 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/roles/ceph-deploy-release/tasks/clear_version.yml

index 7199829aabde66d9bfc3b0533eddfeef9268c54d..63adf731c4d816d0fe0692fb24ae93873d86126d 100644 (file)
@@ -2,7 +2,7 @@
 
 - name: undo last commit from failed release
   command: git reset --soft HEAD~1 chdir=ceph-deploy
-  when: (clean and version in last_commit.stdout)
+  when: (clean and last_commit.stdout == tag_name)
 
 - name: git checkout {{ branch }} branch
   command: git checkout {{ branch }} chdir=ceph-deploy