Skip to content

Commit 85469d5

Browse files
committed
Fix output of multiline fields
1 parent 3dad9c1 commit 85469d5

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

ec2-metadata

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function set_imds_token()
5858
function get_meta()
5959
{
6060
local imds_out=$(curl -s -q -H "X-aws-ec2-metadata-token:${IMDS_TOKEN}" -f ${METADATA_BASEURL}/latest/${1})
61-
echo -n ${imds_out}
61+
echo -n "${imds_out}"
6262
}
6363

6464
#print standard metric

ec2-utils.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Name: ec2-utils
22
Summary: A set of tools for running in EC2
3-
Version: 1.1
3+
Version: 1.2
44
Release: 1%{?dist}
55
License: MIT
66
Group: System Tools
@@ -80,6 +80,9 @@ rm -rf $RPM_BUILD_ROOT
8080
%{_sysconfdir}/udev/rules.d/70-ec2-nvme-devices.rules
8181

8282
%changelog
83+
* Tue Feb 25 2020 Frederick Lefebvre <fredlef@amazon.com> 1.2-1
84+
- Fix output of multi-line fields
85+
8386
* Wed Jan 15 2020 Frederick Lefebvre <fredlef@amazon.com> 1.1-1
8487
- Add IMDSv2 support
8588

0 commit comments

Comments
 (0)