Remove extra backslash in awk for tripleo-ceph-uuid role
This backslash caused bug 1854209. Whitespace in the
multi embedded in YAML is complicated. Seems safer to
just remove it in this case.
Change-Id: I8414a776360700b05fb18d73862797b13a58f32d
Closes-Bug: #1854209
(cherry picked from commit 7d935a5be4
)
This commit is contained in:
parent
ee731ba16f
commit
67f5ca4697
|
@ -34,8 +34,7 @@
|
|||
# awk strips unwanted output, see LP bug #1762460
|
||||
shell: >-
|
||||
dmidecode -s system-uuid | \
|
||||
awk 'match($0, /[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}/) \
|
||||
{ print substr($0, RSTART, RLENGTH) }' | \
|
||||
awk 'match($0, /[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}/) { print substr($0, RSTART, RLENGTH) }' | \
|
||||
tr A-F a-f
|
||||
register: machine_uuid
|
||||
# NOTE(tonyb): 0 == no error, 1 == -EPERM or bad data and 2 == Command not found
|
||||
|
|
Loading…
Reference in New Issue