Package: openstack-debian-images
Severity: normal
Tags: patch

Architecture: amd64 (x86_64)

Kernel: Linux 4.5.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.utf-8, LC_CTYPE=en_GB.utf-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Dear Maintainer,

build-openstack-debian-image writes /etc/cloud/cloud.cfg.d/90_dpkg.cfg, but
unfortunately prefixes 'datasource_list' with a tab. This prevents proper YAML
parsing and can be easily fixed by applying the attached patch.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
>From 943308553ec242ade8de63bf77f3439fba38dad9 Mon Sep 17 00:00:00 2001
From: Wolodja Wentland <[email protected]>
Date: Mon, 6 Jun 2016 13:32:45 +0200
Subject: [PATCH] Remove leading tab from datasource_list

The leading tab caused yaml errors when parsing
/etc/cloud/cloud.cfg.d/90_dpkg.cfg from, for example, cloud-init.
---
 build-openstack-debian-image | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-openstack-debian-image b/build-openstack-debian-image
index 5ae9a60..696882d 100755
--- a/build-openstack-debian-image
+++ b/build-openstack-debian-image
@@ -479,7 +479,7 @@ datasource_list: [Azure]" >${MOUNT_DIR}/etc/cloud/cloud.cfg.d/90_dpkg.cfg
 else
 	# For OpenStack, we would like to use Ec2 and no other API
 	echo "# to update this file, run dpkg-reconfigure cloud-init
-	datasource_list: [ConfigDrive, Openstack, Ec2]" >${MOUNT_DIR}/etc/cloud/cloud.cfg.d/90_dpkg.cfg
+datasource_list: [ConfigDrive, Openstack, Ec2]" >${MOUNT_DIR}/etc/cloud/cloud.cfg.d/90_dpkg.cfg
 fi
 
 # Needed to have automatic mounts of /dev/vdb
-- 
2.8.1

Reply via email to