We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fac879 commit 31eda58Copy full SHA for 31eda58
roles/create_VM/tasks/main.yml
@@ -47,7 +47,7 @@
47
48
- name: Obtain the current tag, (or version if untagged) of this repository.
49
shell: |
50
- TAG=$(git name-rev --tags --name-only HEAD)
+ TAG=$(git name-rev --tags --name-only HEAD | cut -f1 -d^)
51
if [ "$(echo $TAG | tr -d [:space:])" == "undefined" ]; then
52
git rev-parse --short HEAD
53
else
0 commit comments