![Guilherme Schons](/assets/img/avatar_default.png)
Fix the 'puppet lookup' command to unescape special characters. Test Plan: PASS: Use Ruby CLI to test different password possibilites. PASS: Build packages. PASS: Build iso image. PASS: Fresh install Duplex using admin_password starting with special characters. PASS: Fresh install Duplex using admin_passwod not starting special characters PASS: Fresh install Duplex using default admin_password Closes-Bug: 2020148 Change-Id: Ifde68b457a12e808a9878b0cd472c21cea2a1c04 Signed-off-by: Guilherme Schons <guilherme.dossantosschons@windriver.com>
29 lines
962 B
Diff
29 lines
962 B
Diff
From c9317e396969dbadce6d2161c0135defaff1815f Mon Sep 17 00:00:00 2001
|
|
From: Guilherme Schons <guilherme.dossantosschons@windriver.com>
|
|
Date: Fri, 19 May 2023 11:21:21 -0300
|
|
Subject: [PATCH] Fix hiera_lookup function to unescape characters
|
|
|
|
Unescape special characters from the 'puppet lookup' command return.
|
|
|
|
Signed-off-by: Guilherme Schons <guilherme.dossantosschons@windriver.com>
|
|
---
|
|
lib/puppet/provider/openstack/auth.rb | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/puppet/provider/openstack/auth.rb b/lib/puppet/provider/openstack/auth.rb
|
|
index 99a8733..e388805 100644
|
|
--- a/lib/puppet/provider/openstack/auth.rb
|
|
+++ b/lib/puppet/provider/openstack/auth.rb
|
|
@@ -6,7 +6,7 @@ module Puppet::Provider::Openstack::Auth
|
|
RCFILENAME = "/etc/platform/openrc"
|
|
|
|
def lookup_hiera(key)
|
|
- %(sudo puppet lookup #{key})[4...-1]
|
|
+ %(sudo puppet lookup #{key} | sed 's,\",,g')[4...-1]
|
|
end
|
|
|
|
def get_admin_password
|
|
--
|
|
2.25.1
|
|
|