[node-patches] Change in ovirt-node[master]: init: Be more sensitive during auto-install logging

fabiand at redhat.com fabiand at redhat.com
Fri Nov 20 11:15:49 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: init: Be more sensitive during auto-install logging
......................................................................

init: Be more sensitive during auto-install logging

Change-Id: Iefa961d480e3277d7c5c49be248389fb2ba6f542
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1283826
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/58/48858/1

diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index 41e3919..b6c0906 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -919,7 +919,12 @@
         PARAM=$(uc $p)
         value=$(ptr $p)
         if [ -n "$value" -o $p = 'init' -o $p = 'upgrade' -o $p = 'install' ]; then
-            log "Updating OVIRT_$PARAM to '$value'"
+            if [[ "$PARAM" =~ PASSWORD ]]; then
+                log "Updating OVIRT_$PARAM to a for security reasons hidden value"
+            else
+                log "Updating OVIRT_$PARAM to '$value'"
+            fi
+
             echo "set /files$OVIRT_DEFAULTS/OVIRT_$PARAM '\"$value\"'" >> $tmpaug
         fi
     done


-- 
To view, visit https://gerrit.ovirt.org/48858
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iefa961d480e3277d7c5c49be248389fb2ba6f542
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list